/* * * Stenciltricks, code to perform tricks with OpenGL's stencil buffer easily. * * Copyright (C) 2006-2007 Alejandro Valenzuela Roca, * * http://mexinetica.com/~lanjoe9 * * 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 . */ #ifndef STENCILTRICKS_H #define STENCILTRICKS_H #ifndef NINTENDO_DS // FIXME: Should not be auto-compiled in Nintendo DS #ifndef NINTENDO_WII // FIXME: Stencil stuff is probably supported on the Wii #ifdef VISUAL_STUDIO #include #endif #ifndef GL_H #include #endif #ifndef SDL_H #include #endif enum st_type{ST_CORTINILLA_ABRIR, ST_CORTINILLA_CERRAR}; typedef struct { st_type tipo; float porciento; int duracion; int colorFondo; } stenciltrick; void st_do_trick(stenciltrick * trick, float t_elapsed); #endif #endif #endif