From: Chad A. <ae...@ae...> - 2002-02-22 11:45:29
|
I've just released version 0.1.0 of my image library, Corona. It makes it easy to add support for loading images to your application (textures in your game, for example): #include <corona.h> using namespace corona; ... Image* background = OpenImage("background.jpeg"); int width = background->getWidth(); int height = background->getHeight(); PixelFormat format = background->getFormat(); void* pixels = background->getPixels(); The distribution comes with a very simple GLUT app that loads an image and fills the whole GLUT window with it. You can view the source to the application at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/corona/corona/examples/glut/glut.cpp?rev=1.2&content-type=text/vnd.viewcvs-markup More information at http://aegisknight.org/corona |