//! Sample graphical objects /*! * Sample graphical objects (wireframe and solid cubes) * * NOTE: wireframe cube is only supported on the PC */ /* * Copyright (C) 2006-2010 Alejandro Valenzuela Roca, * Hugo Mendieta Pacheco * * http://lj9.mexinetica.com/ * * This file is part of MotorJ, a free framework for videogame development. * * * * 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 OBJECTS_H #define OBJECTS_H #ifndef NINTENDO_DS #ifndef NINTENDO_WII #ifdef VISUAL_STUDIO #include #endif #include #endif #else #include #endif #include "support.h" /*! [DEPRECATED!!!] Generic object structure */ typedef struct { vector3 pos; vector3 dir; vector3 dir_v; void * dibujar(void); void * datos; } objeto; #ifndef NINTENDO_DS // FIXME: NO GL_LINE_STRIP on Nintendo DS // Should be substituted with GL_LINES or something //! Instant wireframe cube void mjWireCube(void); //! Instant solid cube void mjSolidCube(void); //! Instant texturised-capable plane void mjPlane(float n_u, float n_v); //! Instant texturised cube void mjSolidTxCube(GLuint* textures); #else //! Instant solid cube void mjSolidCube(void); #endif #endif