tags:

views:

217

answers:

1

To call glTexGeni(), must I call the following first?

glBindTexture(texType, texId);
glEnable(texType);

Doing that will I set glTexGeni() to a desired texId?

Otherwise, what's the behaviour if I call glTexGeni() before glBindTexture():

glTexGeni(...);
glBindTexture(texType, texId);
glEnable(texType);
+1  A: 

glTexGeni() does not deal with texture IDs. The texture IDs you use (indirectly) with glBindTexture() is created by glGenTextures().

This page has an example on how to use glGenTextures() and glBindTexture().

unwind