Jump to content
  • Advertisement
Sign in to follow this  
Sigvatr

Converting 1-bit bitmap to c code

This topic is 3181 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 there, I need help with the following two things: 1) How do I convert a 1-bit bitmap into c code? Are there any programs that can do this for me? 2) How do I load the ensuing data into a GLuint that I can render? Or would it be better for it to render as a bool (is that possible?) ? I'd prefer not to have to write code that converts images into c code if possible. Basically, I need a few images to be embedded within my application so that they will always be there, even if the user messes around with the data files. Cheers.

Share this post


Link to post
Share on other sites
Advertisement
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!