Sign in to follow this  
ShotgunNinja

2D graphics?

Recommended Posts

ShotgunNinja    102
(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
frob    44973
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
jouley    805
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this