Re: [osg-users] rewrite glTexImage2D() with OSG

2008-11-09 Thread Robert Osfield
Hi RHX, You just using an osg::Texture2D class. Have a search throw the example directories for instances of Texture2D. Also have a browse through the include/osg/Texture and include/osg/Texture2D headers as this will provide lots of OpenGL familiar methods and enums so you should feel at home.

[osg-users] rewrite glTexImage2D() with OSG

2008-11-08 Thread dmu_rhx
Hi! I wrote a program with opengl, now I want to rewrite the program with OSG. But I don't know how to rewrite the following code: glGenTextures(1, texture[l]); glBindTexture(GL_TEXTURE_2D, texture[l]); glTexParameteri(GL_TEXTURE_2D,GL_GENERATE_MIPMAP_SGIS, GL_TRUE);