Sign in to follow this  

Lost Addresses!?

This topic is 3296 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am using VC++ and am trying make voxel models out of 3D textures. In order to get my code to compile, I had to use the following calls, PFNGLTEXIMAGE3DPROC glTexImage3D; PFNGLGENFRAMEBUFFERSPROC glGenFramebuffersEXT; PFNGLBINDFRAMEBUFFERPROC glBindFramebufferEXT; PFNGLFRAMEBUFFERTEXTURE3DPROC glFramebufferTexture3DEXT; To make these function calls work. glTexImage3D = (PFNGLTEXIMAGE3DPROC) wglGetProcAddress("glTexImage3D"); glGenFramebuffersEXT = (PFNGLGENFRAMEBUFFERSPROC) wglGetProcAddress("glGenFramebuffersEXT"); glBindFramebufferEXT = (PFNGLBINDFRAMEBUFFERPROC) wglGetProcAddress("glBindFramebufferEXT"); glFramebufferTexture3DEXT = (PFNGLFRAMEBUFFERTEXTURE3DPROC) wglGetProcAddress("glFramebufferTexture3DEXT"); I am sorry but I don't know why these are necessary to get it to work. I have glew and glext included...any ideas? Thanks!

Share this post


Link to post
Share on other sites
Are you sure you have glew.h included?
Because if you put in PFNGLTEXIMAGE3DPROC glTexImage3D you would get a compile error message. GLEW doesn't allow you to declare the same thing.

Share this post


Link to post
Share on other sites

This topic is 3296 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this