I can't find ICGProgram.h and ICGProgram.cpp in your archive. It's not working without them. Could you please add them into?
And would be great if someone post here example with sources. I still couldn't realize what means third parameter in
zola could you please add also SMaterial.h as I've got following error:
F:\Information for me\Roman\Download\Irrlicht\irrlicht-0.6\source\CVideoOpenGL.cpp(1302) : error C2039: 'VertexShader' : is not a member of 'irr::video::SMaterial'
CVideoOpenGL.obj : error LNK2019: unresolved external symbol __imp__cgGetErrorString referenced in function "public: static void __cdecl irr::video::CVideoOpenGL::cgErrorCallback(void)" (?cgErrorCallback@CVideoOpenGL@video@irr@@SAXXZ)
using Microsoft Visual C++ Toolkit 2003 + RELO IDE and Cg Toolkit v. 1.2.1.
Why compiler don't want to use this functions from [DRIVE]\Program Files\NVIDIA Corporation\Cg\include\Cg\cg.h?
Seems to me it's better wait for a next Irrlicht release with hope that Niko will add shaders.
If I'm not completely mistaken I used the 1.1 version of the cg toolkit.
I think there are several cg libs against which you have to link irrlicht.
(not only the one for CG.DLL) They should be in [DRIVE]\Program Files\NVIDIA Corporation\Cg\lib or something like that.
I'm not at my computer so I can't tell you what libs these are exacly
If I remember right there was CG.lib, CGGL.lib, and some other ??
Anyway, if You d'like to use CG and not only test it I recommend waiting, shader support eventually will be integrated in irrlicht in a more easy and complete way
CVideoOpenGL.cpp: In member function `virtual irr::video::ICGProgram*
irr::video::CVideoOpenGL::createCGProgram(const c8*, const c8*, const c8*,
unsigned int)':
CVideoOpenGL.cpp:59: error: no matching function for call to `
irr::video::CCGGLProgram::CCGGLProgram(irr::core::stringc&,
irr::core::stringc, irr::core::stringc, u32&)'
CCGGLProgram.h:26: error: candidates are:
irr::video::CCGGLProgram::CCGGLProgram(const irr::video::CCGGLProgram&)
CCGGLProgram.h:48: error:
irr::video::CCGGLProgram::CCGGLProgram(irr::core::stringc&,
irr::core::stringc&, irr::core::stringc&, unsigned int)
here is the source folder with the modified files, maybe someone of you could have a look at it? that would be great because then we would have CG support in irrlicht 0.7.1 !!!
I added the all the CG libs as additional dependencies (cg.lib cgGL.lib cgD3D9.lib CgFXParser.lib) and then i added CCGGLProgram.h/.cpp into the project.
Compiled it with VC .NET 2003 ... and it worked like a charm.
Sorry don't know. Have never used Dev-C++. I used CG v.1.2 .. maybe that is the problem. But if you get the same errors maybe your code doesn't compile right... search for other files that aren't included in the project.??