Sign in to follow this  

Class doesnt know GLEW function

This topic is 2318 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 have a problem with loaded glew functions.
I had been trying some vbo code in main function only, i had loaded functions like glBindBuffer there aswell.
Now i wanted to use those functions in a included class but the class doesnt know them.

It's like:

[code]// Include stuff

main function
{
initializing
load glew functions like glBindBuffer, glGenBuffers and so on
create renderwindow
call class method using glGenBuffers -> crash caused by glGenBuffers being NULL, why?
}[/code]

I load those functions like this: [code]PFNGLGENBUFFERSPROC glGenBuffers = (PFNGLGENBUFFERSPROC) glfwGetProcAddress("glGenBuffers");[/code]

Now i dont know why the class can't call the function although it is loaded, i used those function before directly in main function for trying.

What is my fault?

Thanks!

Share this post


Link to post
Share on other sites

This topic is 2318 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