- 博客(2)
- 资源 (6)
- 收藏
- 关注
原创 std::auto_ptr 不能赋值 简析
今天试用了下std::auto_ptr, 第一次使用就出错了,尴尬啊,先还原现场:类内声明:Std::auto_ptr m_pWgt;类构造函数内赋值:m_pWgt = new Widget;大概就是这样,编译很顺利通过,一运行,蹦出个run-time error, 错误显示m_pWgt里无对象,于是trace到auto_ptr的赋值构造函数,查看了auto_ptr源码发现问题所在,现将部分源码列出如下:template struct auto_ptr_ref { // proxy referen
2010-09-18 12:28:00 3235 2
原创 wglShareLists使用简介
OpenGL中用到多线程和多render context渲染的时候会用到wglsharelist进行资源共享,本文将对我本人在wglsharelist使用过程中的经验做个小总结: 首先翻译下msdn上对wglsharelist的说明:wglShareLists wglShareLists函数使多个OpenGL render contexts可以共享一个显示列表空间。 BOOL wglShareLists( HGLR C hglrc1 , // 提
2010-09-09 13:32:00 8086 9
Absolute C++
2009-08-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人