[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: opengl and textures FIXED



Francesco Orsenigo wrote:

A "glGenTextures(GL_TEXTURE_2D, &select_text_id);" call helps too.... =)
Actually, no - it doesn't.

You can pick any handle you like for a texture.  The only reason to use
glGenTexture is to guarantee that your texture handle is unique in a
situation where maybe you have some other library allocating textures
and you don't know what handles that library is using.

Same deal with display list handles.

---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1@airmail.net>    WorkEmail: <sjbaker@link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net    http://tuxaqfh.sf.net
           http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----