Advertisement

Texture

Started by November 14, 2000 08:07 AM
3 comments, last by Lucifero 24 years ago
Hi to all, I''m quite new to OpenGL programming. Once I''ve created a texture with glGenTexture, read a bitmap file, etc... can I do somehing like that: ... GLuint oldTexture; GLuint newTexture; glGenTexture(1, &oldTexture); //etc... newTexture = oldTexture; ? Can I call glBindTexture(newTexture)? Does it works? Thanx to all =)
Yes, it will work...

glGenTextures stores a number in the variable(s) you specify and it is that number that is important, it doesn''t matter which variable holds the value.
Advertisement
Thanx, I''ve tried, but it didn''t work, maybe I''ve mistaken somthing else...
I''ll try againg =)))
First of all you should make it glBindTexture(GL_TEXTURE_2D, newTexture); and then make sure you enables GL_TEXTURE_2D.



Open mouth, insert foot
Yeah, it finally works =)
Thanx to all

This topic is closed to new replies.

Advertisement