Jump to content
  • Advertisement
Sign in to follow this  
ShotgunNinja

2D graphics?

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

(Just so you all know, I'm very noobish. Move this to 'For Beginners' if you want.) Anyway, I don't know how to incorporate image files into C++ code with transparency and rotation and all that. I've heard of scripts like TGALoader and PNGwriter, but I don't know how to use them. Yes, I am very new to this.

Share this post


Link to post
Share on other sites
Advertisement
Generally you use a library in your drawing system to load images, if it has that functionality.

Otherwise you can use one of the libraries as suggested to load it into memory, then use one of your rendering library functions that accepts an image array.

If you would like more detail, please state what drawing API you will be using.

Share this post


Link to post
Share on other sites
Quote:
Original post by ShotgunNinja
(Move this to 'For Beginners' if you want.)

I imagine a moderator will be along shortly...

Quote:
Anyway, I don't know how to incorporate image files into C++ code with transparency and rotation and all that.

What are you using to draw your graphics? OpenGL? DirectX? SDL? Windows GDI? Any answer we give you will be better if you can tell us what, exactly, you're using and what you're trying to do.

[Edit: Bojangled!]

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.

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

Sign me up!