something wrong when using ccGLCameraParameters
Posted: Wed Sep 25, 2019 3:45 am
I want to get the ccGLCameraParameters data.
but there's something wrong.
it already defined in mainwindow.obj
so I remove all code .
Only left with
it still error.
I found that the problem is "ccGLMatrixd"
then the same error.
but no error when using "ccGLMatrix"
I also can not find "ccGLCameraParameters" in document?
How to fix it? Thanks.
Code: Select all
ccGLCameraParameters camera;
glWindow->getGLCameraParameters(camera);
but there's something wrong.
Code: Select all
"QCC_DB_LIB.lib(QCC_DB_LIB.dll):-1: error:
LNK2005: "public: virtual void __cdecl ccGLMatrixTpl<double>::toIdentity(void)" (?toIdentity@?$ccGLMatrixTpl@N@@UEAAXXZ) 已在 mainwindow.obj 中定義過了"
so I remove all code .
Only left with
Code: Select all
CreateGLWindow(glWindow, widget);
ccGLCameraParameters camera;
I found that the problem is "ccGLMatrixd"
Code: Select all
#include <ccGLMatrixTpl.h>
ccGLMatrixd m;
but no error when using "ccGLMatrix"
I also can not find "ccGLCameraParameters" in document?
How to fix it? Thanks.