RE: [Plib-devel] texture support for ssgLoadOBJ
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-04-05 00:57:22
|
> >> - I had a texture with a size that is not a power of two. > >> plib complained (map is not a power-of-two in size) > >> and exits the program! > > - Dont load wrong textures, give an error-message, go on loading > everything else. > done. i used Steve's loadDummyTexture() in the event that make_mip_maps() finds non power-of-two sizes. while i was at it, i added some simple error message routines: void ssgSetError(const char *fmt, ...); char* ssgGetError(void); void ssgClearError(void); this is similar to what SDL uses. SetError fprintfs to stderr and stores the message in a buffer that can be retreived with GetError. SetError could also echo to a stderr.txt file if we want to capture multiple error messages. I'd like to apply these error message routines to my loaders and perhaps all of SSG unless there are objections. -- Dave McClurg |