Jump to content
  • Advertisement
Sign in to follow this  
tojoshua

Lost Addresses!?

This topic is 3662 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!