I am porting some old code I did not write to newer versions of Ogre but I am experiencing some problems. The main issue I have so far is how to replace this two calls that do not compile in Ogre 1.9 while they are fine in 1.8.
Code: Select all
Ogre::TexturePtr rtt_texture = ...; // some texture is defined here
Ogre::GLuint id = static_cast<Ogre::GLTexturePtr>(rtt_texture)->getGLID();
Ogre::GLenum target = static_cast<Ogre::GLTexturePtr>(rtt_texture)->getGLTextureTarget();
Code: Select all
Ogre::TexturePtr rtt_texture = ...; // some texture is defined here
Ogre::GLTexturePtr gl_tex = rtt_texture.static_cast<Ogre::GLTexturePtr>();
Ogre::GLuint id = gl_tex->getGLID();
Ogre::GLenum target = gl_tex->getGLTextureTarget();
Thanks for help guys.