I am fimiliar with graphics and imaging in C, although specificly on the Sony PSP. I do homebrew programming, and i wanted to look into 2D gfx in c. I am running Mac OS X and using XCODE. If you can help me out, i will appreciate it very much.
You'll need to use a graphics library; perhaps the SDL. http://libsdl.org/
Also see this SDL tutorial for Max OS X: http://www.meandmark.com/sdlopenglpart1.html
Graphics programming is pretty complicated, though; don't try it if you haven't been programming for very long.
is it really all that different.
on the psp you just include the "graphics.h", "framebuffer.h" , "png.h" and "pspgu.h" headers and to initialize the gfx you call "initGraphics()"
then you load the image by pointing to the struct Image.
then you blit the image w/ one of two functions..
Image* img = loadImage("./directory/image.png");
then you have to flip the buffer to dislplay the images.
blitAlphaImageToScreen(0, 0, width, height, imgsrc, x, y);
blitImageToScreen(width, height, imgsrc, x, y);
i am just saying this because this is what i am used to and i want to know wat i am getting into here :D. Thanks again.
Those functions are part of a graphics library for the PSP. If you want to write graphics applications for a PC, you need to use a graphics library available for your platform (windows, linux, etc...). Libraries like SDL have functions which are analagous to the ones you've mentioned. Libraries like OpenGL are strictly rendering libraries, and don't have built-in support for things like images.
so the SDL is my best choice, eh?
thank you. im gonna go read some tutorials today