/* * Application control class * * Copyright (C) 2006-2008 Alejandro Valenzuela Roca, * * http://mexinetica.com/~lanjoe9 * * 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 APPLICATION_CLASS_H #define APPLICATION_CLASS_H #ifndef NINTENDO_DS #ifndef NINTENDO_WII #include #endif #endif #ifdef NINTENDO_WII #include #endif #include "data_structs.h" #include "musicplayer-class.h" #include "networkctl-class.h" #include "universe-class.h" //#include "glContexts.h" class mjApplication { public: Universe* currentUniverse; int video_mode; #ifdef PC_SDL SDL_Surface * screen; #endif int gl_width; int gl_height; bool shaders_sup; bool audio_sup; bool network_sup; bool font_sup; bool video_sup; bool fullscreen; float fps; float t_elapsed; int argc; char ** argv; int return_value; bool currentlyPicking; list_header extra_data; list_header universes; #ifndef NINTENDO_WII mjMusicPlayer MusicPlayer; //float mjWiiCurrentColor[3]; #endif #ifndef PC_SDL mjNetworkCTL NetworkCTL; #endif #ifdef NINTENDO_WII Mtx view, perspective; // view and perspective matrices Mtx model, modelview[12]; unsigned wiiCurrentMatrixIndex; u32 wiiCurrentFB; Mtx * wiiCurrentMtx; GXRModeObj * wiiRMode; u32 wiiXFBHeight; GXColor wiiBgColor; void * wiiFIFO; f32 wiiYScale; bool wiiShowConsole; #endif #ifdef GLCONTEXTS_H MJglxData glContextData; #endif private: }; #endif