From: Ben H. <be...@ex...> - 2001-10-01 02:47:36
|
Hi all, In "csopengl.c" the function "DMGetTex2DInfo(...)" sets up a Texture2DInfo structure. In that structure it sets the "internFormat" to the value "3". Later on this variable gets passed in as the "internal format" setting in the GL.glTexImage2D() function. As far as I can tell the value "3" is not a valid setting. What I am wondering is if this a trick or a mistake or am I missing something? <code> DLLOBJ BOOL DMGetTex2DInfo(HBITMAP hBitmap, Texture2DInfo * ret) { BITMAPINFO bInfo; [...snip...] ret->internFormat = 3; ret->type = GL_UNSIGNED_BYTE; ret->format = GL_RGB; </code> Take care, -ben |