Is GLEW necessary to use shaders? [solved: NOT necessary]
Umm, scratch that, there was an error (you can clearly see it in my posted code) in my file loader. Everything works fine without GLEW.
For me, binding extensions is easier than converting a VC6 project to work with CodeBlocks.
For me, binding extensions is easier than converting a VC6 project to work with CodeBlocks.
Quote:Original post by V-manI like GLEW. It makes my program run 5 times faster. You have to call glewInit.Please tell me that's a joke. On the small chance you're serious... why so? Also, do you need to call the glewInit() function if you compile the GLEW files into your program (and thus not link it in)?
Quote:Also, do you need to call the glewInit() function if you compile the GLEW files into your program (and thus not link it in)?
Yes. I bet its the function that GLEW uses to bind extensions. If you try to use any function before glewInit(), the program fails. [GL]Extensions are done differently than linking. You have to manually initialize the function pointer to it's prototype.
Quote:Original post by transistor09Correct. However, GLee handles this under the hood (unlike GLEW).Quote:Also, do you need to call the glewInit() function if you compile the GLEW files into your program (and thus not link it in)?
Yes. I bet its the function that GLEW uses to bind extensions. If you try to use any function before glewInit(), the program fails. [GL]Extensions are done differently than linking. You have to manually initialize the function pointer to it's prototype.
Quote:Original post by maxgpgpuQuote:Original post by V-manI like GLEW. It makes my program run 5 times faster. You have to call glewInit.Please tell me that's a joke. On the small chance you're serious... why so? Also, do you need to call the glewInit() function if you compile the GLEW files into your program (and thus not link it in)?
It was a joke. This thread seems kind of too boring for my taste.
Anyway, GLEW is the best.
GLEE, every time you call a gl function, GLEE checks to see if it has initialized. It might not have an effect on performance, but I prefer GLEW's way.
Have fun with GL!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement