Advertisement Jump to content
Sign in to follow this  

Composing sprites/bitmaps at run-time

This topic is 4209 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! Do you know any method to compose sprites/bitmaps at run-time? The idea is to generate a bitmap (to be used as an OpenGL texture) based on a configuration file and a set of pre-defined shapes. Those shapes should be freely translated/resized in the resulting sprite. Example: a smiley face. Supposing I have "face" and "eye" bitmaps, the user should be able to define, at run-time, the height of the eyes, their size and color, and the system should compose a final bitmap. Doing this at a per-pixel basis is not an option. Maybe using SVG/Cairo would ease my job, since shapes could be resized without any resolution loss. What do you think? Thanks a lot!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!