gl_texture_cube_map

Started by
4 comments, last by V-man 15 years, 3 months ago
hey, i was getting an error message that GL_TEXTURE_CUBE_MAP wasn't define... can one of you guys/gals tell me which header file defines this? and it wud be great if u can tell me which header defines GL_TEXTURE_WRAP_R too... :D
Advertisement
The header in question is gl.h, which is used as GL/gl.h (OpenGL/gl.h on a Mac). However, you may need to update the drivers for your graphics card, and update your header files, to get support for GL_TEXTURE_CUBEMAP and other extensions.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

hmm
when i opened my gl.h file,

gl_texture_cube_map is not there... which made me think that it is not defined.
also, gl_Texture_wrap_r is not there too...

do u know where i can get the latest header files?
for gl.h and any others that i need...

huhu... thanks
You are aware that all OpenGL tokens are capitalised, right? That would be GL_TEXTURE_CUBEMAP.

Also, AFAIK, GL_TEXTURE_WRAP_R is only used for 3D textures (not cubemaps).

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

oo, thanks dude...

the caps thing i am aware, just lazy to caps it here... haha...
however, i was not with the .._WRAP_R.

because most of te examples that wanted to create a cubemap uses it, so i was a bit confused. can u show me any examples that load 1 picutre (with 6 square images on it) or 6 different pictures to create a cube? thanks a lot.
You can find examples in the nvidia SDK
http://developer.nvidia.com/object/sdk-9.html
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement