glTexImage3D and glTexImage3DEXT
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");
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...
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");
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");
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement