Jump to content
  • Advertisement
Sign in to follow this  
MARS_999

GLSL internal text shaders

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

I was wondering how people are doing their char[] based shaders for GLSL? I tried to, but got an overflow for my char*[]... So do I need to dynamically make this string to allow for a larger amount of chars? Any example would be greatly appreciated. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by phantom
errm... I'm treating it the same as I would any other variable amount of text by dynamically allocating the memory


Yeah thats what I am doing... I just had to strcat() due to my string is to long the compiler says...

Share this post


Link to post
Share on other sites
I am including the shader code in the mapeditor code base. To clear up what I am doing. I can load the shader code just fine from a text file format. Which I am doing in my engine. But I am looking to give out my mapeditor to some people to work on and don't want my shaders all over the place as of yet... :)

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!