VS2010
ZRunners
这个作者很懒,什么都没留下…
展开
-
VS 2010 不能调试问题
VS2010不能调试,是一个很严重的问题。原创 2014-08-20 12:18:59 · 2569 阅读 · 0 评论 -
osgWidget示例
要在OSG的三维场景中添加界面元素,找了个《OSG Cookbook》上的例子,学习并分析一下:int main(int argc, char * argv[]){osgViewer::Viewer viewer;//新建一个WindowManager,这个是必须的。其中定义了整个UI系统的大小和基本属性。osg::ref_ptr wm = new osgWidge转载 2014-09-01 11:11:50 · 4693 阅读 · 0 评论 -
osgkeyboard例子
osgkeyboard例子中包含的内容:(1)显示文本osgText.(2)在viewer中添加事件处理:GUIEventHandler.解析如下:class KeyboardModel : public osg::Referenced{public:KeyboardModel() { createKeyboard(); } o转载 2014-12-01 09:29:11 · 560 阅读 · 0 评论 -
两个类相互包含的一些问题
两个类相互包含,一般不会不出问题。如两个类class AAA和class BBB在AAA中要用到BBB的对象,在BBB中要用到AAA的对象。所以出现了了重复的声明#include “BBB.h” class AAA{ protected: BBB bbb;}; #include “AAA.h”class BBB{原创 2014-12-01 16:30:34 · 629 阅读 · 0 评论 -
不允许 dllimport 静态数据成员
当要使用一个类的时候必须要有其定义,有2种方式: 1、引用其头文件,即#include "xxx.h"。这是传统的方式。 2、使用导出类。 什么是‘导出类’,很简单,使用__declspec(dllimport)定义的类即为导出类。例如: class __declspec(dllimport) CTest {转载 2015-04-24 13:48:32 · 2280 阅读 · 0 评论 -
osg的几个矩阵
#include #include #include #include #include #include using namespace std;class Follow :public osgGA::CameraManipulator {public: Follow(){ _position=osg::Vec3(0,0,3); _r转载 2015-04-28 16:48:46 · 3348 阅读 · 0 评论 -
Win32程序CreateWindow错误
如果用DWORD err = GetLastError();测试程序CreateWindow错误err=1407,可能是WNDCLASS的lpszClassName和创建的窗口CreateWindowExW(0L, lpClassName, lpWindowName, dwStyle, x, y,nWidth, nHeight, hWndParent, hMenu, hInstance, lp原创 2016-06-03 16:05:23 · 1185 阅读 · 0 评论