Jump to content
  • Advertisement
Sign in to follow this  
MajinMusashi

Composing sprites/bitmaps at run-time

This topic is 3963 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
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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!