![]() This notice may not be removed or altered from any source distribution. ![]() * misrepresented as being the original software. ![]() Altered source versions must be plainly marked as such, and must not be * in a product, an acknowledgment in the product documentation would be You have to place the file in your projects folder / in the same directory as your executable if youre outside of an IDE. * claim that you wrote the original software. Remove /02gettinganimageonthescreen/ in helloworld.bmp. The origin of this software must not be misrepresented you must not * freely, subject to the following restrictions: * including commercial applications, and to alter it and redistribute it * Permission is granted to anyone to use this software for any purpose, In no event will the authors be held liable for any damages * This software is provided 'as-is', without any express or implied The only thing which we plan to tidy up is the ugly mix of std::cout, fprint(stderr) and printf for error reporting.īugs/patches/comments welcome to image_loader.h You can probably replace that with a print and exit() - because that's what fatalError contains in our case. The only specific header is "Utilities.h" which provides a fatalError in the Utilities namespace. It's under the zlib license, so should be usable in your project. We don't have any speed issues in our case for loading or saving images, so I haven't worried about anything about that here. It theoretically allows you to switch back to SDL2_image - but the IMG_Init code isn't ideal here, and was only included for testing. Some of this code was based on examples from the LodePNG site. ![]() The reason we ended up with LodePNG rather than SDL_image 2.0 is that there was some colour alternation on image load on Mac OS X platform (but not Linux or Windows). So Tony suggested that I posted the code from Gulpman we just added to load PNG images using LodePNG. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |