//!Image loading functions (PC_SDL only!) /* * MotorJ image loading functions * * (C) 2007-2010 Alejandro Valenzuela Roca * * This file is part of MotorJ, a free framework for videogame creation. * * * * MotorJ is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MotorJ is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with MotorJ. If not, see . */ /* * Warning: Some of these functions are likely to disappear in next release */ #ifndef TEXTURES_H #define TEXTURES_H #ifndef NINTENDO_DS #ifndef NINTENDO_WII // FIXME: Must be substituted with Devkitarm's SDL_Image-equivalent porcedures #ifdef VISUAL_STUDIO #include #endif #include #ifdef WIN32 #include #endif #include #include #include #include "support.h" //! Alpha (transparency) configuration enumeration enum alphasettings{ALPHA_OFF, ALPHA_ON}; //! Enables texturing using OpenGL. If alphasettings is ALPHA_ON, enables transparency too. void mjEnableSimpleTexturing(alphasettings enableAlpha); //! Enables lighting void mjEnableSimpleLighting(void); //! Repositions light source at the default coordinates void mjDefLightPos(void); //! Loads an image into OpenGL; returns the GL texture name, for easy texturing GLuint mjGLTextureFromFile(const char * filename); #else #ifndef NINTENDO_WII #include #endif #endif #endif #endif