From: Kevin M. <ke...@vr...> - 2002-01-16 17:02:22
|
Alternatively isn't there a few general image libs already available? probably don't want to reinvent the wheel. I wrote mine because at the time (3-4 years back) there wasn't a good sgi loader, and there certainly wasn't any good C++ loaders... I don't care if we find something different than mine if it's better. someone want to research the available libs, and make notes about how to load and access the image data? for example my lib works like this: Image image; TgaImport imp; imp.import( "filename.tga", image ); then to access the data: void *data = image.data() int width = image.width(); int height = image.height(); int channels = image.channels(); int bpp = image.bpp(); // bits per pixel void* pixel = image.pixel( x, y ); // access an individual pixel the Image class data format is what OpenGL needs passed to it. I think I also used it with direct X once as well... Kevin On Wed, 16 Jan 2002, Chad Austin wrote: > I'm about to start a general-purpose image I/O library for the gamedev > club and a few personal projects I'm working on. (It'll also make > Sphere's footprint a little smaller.) Anybody have any naming > suggestions? > > _______________________________________________ > ISUGameDev-devel mailing list > ISU...@li... > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > -- @--@---@---@----@-----@------@------@-----@----@---@---@--@ Kevin Meinert __ _ __ http://www.vrac.iastate.edu/~kevn \ || \| \ / ` Virtual Reality Applications Center \ ||.-'|--\\ Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, ----------------------------------------------------------- |