Advertisement

glTexImage3D and glTexImage3DEXT

Started by June 22, 2004 08:57 AM
4 comments, last by vincoof 20 years, 5 months ago
i'm trying to use glTexImage3D (or glTexImage3DEXT) but it seems that my ATI9000 doesn't support it. It's true or not? if yes, there's another function i can use instead? i use this code : /*main.h*/ typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); extern PFNGLTEXIMAGE3DPROC glTexImage3D; /*main.cpp*/ glTexImage3D = (PFNGLTEXIMAGE3DPROC) wglGetProcAddress("glTexImage3D"); if (!isExtensionSupported("glTexImage3D")) printf("error");
According to the Extension Data Base on www.delphi3d.net you graphic card should support this extension. Try to use:

wglGetProcAddress("glTexImage3DEXT");
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
Advertisement
i've already tryed this... doesn't work :/
My ATi Radeon 8500 does support it, and it's almost the same chipset as your Radeon 9000.
When you query the glGetString(GL_EXTENSIONS) string, do you see "GL_EXT_texture3D" ?

[edit]
I've just written a program again and both "glTexImage3D" and "glTexImage3DEXT" are valid function names.
However, how does work your isExtensionSupported function ?
Shouldn't you test this instead :
if (!isExtensionSupported("GL_EXT_texture3D")) printf("error");
now it works :D but i still dunno how i did it o_O
Would you like me to explain the functions I've posted ?
I'd be more then glad to do it.

This topic is closed to new replies.

Advertisement