ImageLoaders.h

Go to the documentation of this file.
00001 #ifndef IMAGELOADER_H
00002 #define IMAGELOADER_H
00003 
00004 #include "MercuryTexture.h"
00005 #include "MercuryFiles.h"
00006 
00007 inline static float M2DPI(unsigned int meters) { return (meters/ 3.2808399f) / 12.0f; }
00008 RawImageData* LoadBMP( MercuryFile * fp );
00009 RawImageData* LoadPNG( MercuryFile * fp );
00010 
00011 #endif
00012 
00013 /* 
00014  * Copyright (c) 2006 Joshua Allen
00015  * All rights reserved.
00016  *
00017  * Redistribution and use in source and binary forms, with or
00018  * without modification, are permitted provided that the following
00019  * conditions are met:
00020  *  -   Redistributions of source code must retain the above
00021  *      copyright notice, this list of conditions and the following disclaimer.
00022  *  -   Redistributions in binary form must reproduce the above copyright
00023  *      notice, this list of conditions and the following disclaimer in
00024  *      the documentation and/or other materials provided with the distribution.
00025  *  -   Neither the name of the Mercury Engine nor the names of its
00026  *      contributors may be used to endorse or promote products derived from
00027  *      this software without specific prior written permission.
00028  *
00029  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00030  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00031  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00032  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
00033  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00034  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00035  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00036  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00037  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00038  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00039  */
00040 

Hosted by SourceForge.net Logo