Jump to content
  • Advertisement
Sign in to follow this  
Dragon_Strike

OpenGL GLSLProgram?

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

ive read the book "more opengl programming" and im now trying to implement a gemorph shader into my terrain engine but im having trouble with the GLSLProgram described in the book... ithe problem is quite simple... my compiler doesnt find the class... im using visual c++.net ive included glee like this: #include <gl\glee.h> #pragma comment(lib, "glee") but when i write in my terrain class: GLSLShader Morprh; i get the error: "Missing storage class or type specifier" (C2501)... what am i doing wrong?

Share this post


Link to post
Share on other sites
Advertisement
It sounds like GLSLShader isn't defined anywhere. You should post the actual error... certainly it has a line number associated with it. Are you forgetting to include something?

Share this post


Link to post
Share on other sites
The GLSLShader class is surely not defined in glee.h.
glee's job is to load openGL extensions. the openGL API is written in C, so with glee, you have acces to the gl functions, like glCreateShader() etc.

You have to include the header file wich describe the GLSLShader class. if you are doing tutorials from a book, the header and the code for GLSLShader must be given with the book.

Share this post


Link to post
Share on other sites
the thing is that is isnt.. the book doesnt say anything about where i can find the file (which i havent found) or even that i need it... soo i was taking for granted that GLee had it..

but yea the class is obviosly not in teh header... i mightve missed something completly...

anyone know where i can find this class?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by Dragon_Strike
it goes through the class header... but not the functions...

doesnt anyone have this book that might point me in the right direction?


yep, phantom (moderator of this forum) wrote that chapter :)
he might be able to send you those files. the book's website hasn't been updated in a long time and I think that was part of what was going to be updated.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
Quote:
Original post by Dragon_Strike
it goes through the class header... but not the functions...

doesnt anyone have this book that might point me in the right direction?


yep, phantom (moderator of this forum) wrote that chapter :)
he might be able to send you those files. the book's website hasn't been updated in a long time and I think that was part of what was going to be updated.


i wrote a mail to him... hope he replies...



Share this post


Link to post
Share on other sites
ah, it was you... I did see the email but my mail client isn't working atm however now I know what you want I'll sort out a download for you (I have given Dave the chapter code, but if the website hasn't been updated then I don't know when it'll be up).

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!