#include <Menu.h>
Inherits Scene.
Inheritance diagram for Menu:
Public Member Functions | |
Menu () | |
virtual | ~Menu () |
bool | load (Application *parent) |
bool | unload () |
bool | update () |
bool | drawFrame () |
void | handleChar (char ch) |
Protected Member Functions | |
bool | loadMain () |
bool | unloadMain () |
bool | loadCreate () |
bool | unloadCreate () |
bool | loadJoin () |
bool | unloadJoin () |
bool | loadSettings () |
bool | unloadSettings () |
void | menuMainSelect () |
void | drawMain () |
void | drawCreate () |
void | drawJoin () |
void | drawSettings () |
void | drawCredits () |
void | drawSelection () |
void | drawLabel (TextureID tex, float x, float y) |
void | drawSelect (Vec2 pos, float size=10.0f) |
void | drawQuad (TextureID tex, float x, float y, float w, float h) |
void | updateMain () |
void | updateCreate () |
void | updateJoin () |
void | updateSettings () |
void | updateCredits () |
void | setCamera (Vec3 pos, float pitch, float heading, bool soft=false) |
bool | loadModels () |
bool | setModel (unsigned int model, const char *file, const char *skin, const char *avatar) |
Protected Attributes | |
TextureID | m_textures [MENU_TEXTURES] |
TextureID | m_mainTextures [MENU_MAIN_TEXTURES] |
OpenGLObject * | m_objects [MENU_OBJECTS] |
Sound | m_sounds [MENU_SOUNDS] |
Vec3 | m_vMain [MENU_MAIN_SELECTIONS] |
Vec3 | m_vCreate |
Vec3 | m_vJoin |
Vec3 | m_vSettings |
Vec3 | m_vSelection |
Vec3 | m_vSun |
SMenuPlanets | m_planets [MENU_PLANETS] |
SLight | m_lights [MENU_LIGHTS] |
SMenuInput | m_inputs [MENU_INPUTS] |
int | m_selected [MENUS] |
int | m_selection |
int | m_menu |
float | m_camDist |
ShaderID | m_shader |
OpenGLParticleSystem | m_particleSystem |
GLuint | query |
int | m_inview |
TextureID | m_texModels [MODELS] |
int | m_selModel |
Definition at line 105 of file Menu.h.
|
Author: Petter Alstermark, petter@alstermark.com Definition at line 12 of file Menu.cpp. References m_objects, and MENU_OBJECTS. |
|
Definition at line 23 of file Menu.cpp. References unload(). Here is the call graph for this function: |
|
|
Definition at line 1106 of file Menu.cpp. References Application::defaultFont, OpenGLFont::endTextMode(), g_width, m_menu, Scene::m_parent, MENU_CREDITS, OpenGLFont::print(), OpenGLFont::setColor(), and OpenGLFont::startTextMode(). Referenced by drawFrame(). Here is the call graph for this function: |
|
|
|
Definition at line 1211 of file Menu.cpp. References Renderer::apply(), COLOR, GL_TEXTURE0_ARB, glMultiTexCoord2fARB, Scene::m_parent, m_textures, ONE, Application::renderer, Renderer::setBlending(), Renderer::setMask(), and Renderer::setTextures(). Referenced by drawCreate(), and drawJoin(). Here is the call graph for this function: |
|
Definition at line 775 of file Menu.cpp. References ALL, Renderer::apply(), Application::camera, COLOR, OpenGLObject::draw(), g_time, LEQUAL, m_inview, m_mainTextures, m_menu, m_objects, Scene::m_parent, m_vMain, MENU_MAIN, MENU_MAIN_SELECTIONS, MENU_OBJ_SPHERE, MENU_OBJ_TUBE, ONE, Application::renderer, Renderer::setBlending(), Renderer::setDepthFunc(), Renderer::setMask(), Renderer::setTextures(), Camera::sphereInFrustum(), and SRC_ALPHA. Referenced by drawFrame(). Here is the call graph for this function: |
|
Definition at line 1470 of file Menu.cpp. References Renderer::apply(), COLOR, GL_TEXTURE0_ARB, glMultiTexCoord2fARB, Scene::m_parent, ONE, Application::renderer, Renderer::setBlending(), Renderer::setMask(), and Renderer::setTextures(). Referenced by drawCreate(), and drawJoin(). Here is the call graph for this function: |
|
Definition at line 1240 of file Menu.cpp. References Renderer::apply(), COLOR, g_time, GL_TEXTURE0_ARB, glMultiTexCoord2fARB, Scene::m_parent, m_textures, MENU_TEX_SELECTION, ONE, Application::renderer, Renderer::setBlending(), Renderer::setMask(), Renderer::setTextures(), Vec2::x, and Vec2::y. Referenced by drawCreate(), and drawJoin(). Here is the call graph for this function: |
|
Definition at line 822 of file Menu.cpp. References Renderer::apply(), COLOR, OpenGLObject::draw(), g_frameTime, m_menu, m_objects, Scene::m_parent, m_selection, m_textures, m_vSelection, MENU_MAIN, MENU_OBJ_BOX, MENU_SELECTION_NONE, MENU_TEX_SELECTION, ONE, Application::renderer, Renderer::setBlending(), Renderer::setMask(), Renderer::setTextures(), Vec3::x, Vec3::y, and Vec3::z. Referenced by drawFrame(). Here is the call graph for this function: |
|
Definition at line 1066 of file Menu.cpp. References ALL, Renderer::apply(), Application::camera, COLOR, OpenGLObject::draw(), g_time, LEQUAL, m_camDist, m_inview, m_mainTextures, m_menu, m_objects, Scene::m_parent, m_vSettings, MENU_MAIN_SELECTIONS, MENU_MAIN_SETTINGS, MENU_OBJ_SPHERE, MENU_OBJ_TUBE, MENU_SETTINGS, ONE, Application::renderer, Renderer::setBlending(), Renderer::setDepthFunc(), Renderer::setMask(), Renderer::setTextures(), Camera::sphereInFrustum(), SRC_ALPHA, Vec3::x, Vec3::y, and Vec3::z. Referenced by drawFrame(). Here is the call graph for this function: |
|
|
|
|
Definition at line 218 of file Menu.cpp. References m_inputs, m_selected, m_vJoin, MENU_INPUT_JOIN_INPUT_MIN, MENU_INPUT_JOIN_MODEL, MENU_INPUT_JOIN_PLAYER_NAME, MENU_INPUT_JOIN_PORT, MENU_INPUT_JOIN_SERVER_IP, MENU_INPUT_JOIN_SUBMIT, MENU_INPUT_TYPE_MODEL, MENU_INPUT_TYPE_STR, MENU_INPUT_TYPE_STR_INT, MENU_INPUT_TYPE_SUBMIT, MENU_JOIN, SMenuInput::str, SMenuInput::strMax, SMenuInput::strMin, SMenuInput::type, SMenuInput::valMax, and SMenuInput::valMin. Referenced by load(). |
|
Definition at line 157 of file Menu.cpp. References Renderer::addTexture(), m_mainTextures, Scene::m_parent, m_vMain, MENU_MAIN_CREATE, MENU_MAIN_CREDITS, MENU_MAIN_EXIT, MENU_MAIN_JOIN, MENU_MAIN_SELECTIONS, MENU_MAIN_SETTINGS, Application::renderer, and TEXTURE_NONE. Referenced by load(). Here is the call graph for this function: |
|
Definition at line 1444 of file Menu.cpp. References MODEL_ROBOT1, MODEL_ROBOT2, MODEL_VIPER, and setModel(). Referenced by load(). Here is the call graph for this function: |
|
Definition at line 248 of file Menu.cpp. References m_vSettings. Referenced by load(). |
|
Definition at line 1128 of file Menu.cpp. References Application::hWnd, m_menu, Scene::m_parent, m_selection, MENU_CREATE, MENU_CREDITS, MENU_JOIN, MENU_MAIN_CREATE, MENU_MAIN_CREDITS, MENU_MAIN_EXIT, MENU_MAIN_JOIN, MENU_MAIN_SETTINGS, and MENU_SETTINGS. Referenced by updateMain(). |
|
Definition at line 1170 of file Menu.cpp. References Application::camera, g_frameTime, Camera::getHeading(), Camera::getPitch(), Camera::getPosition(), Vec3::length(), m_camDist, Scene::m_parent, Vec3::normalize(), Camera::setHeading(), Camera::setPitch(), and Camera::setPosition(). Referenced by updateCreate(), updateCredits(), updateJoin(), updateMain(), and updateSettings(). Here is the call graph for this function: |
|
Definition at line 1455 of file Menu.cpp. References Renderer::addTexture(), SModelInfo::avatar, g_allModels, SModelInfo::isSet, Scene::m_parent, m_texModels, Application::renderer, and TEXTURE_NONE. Referenced by loadModels(). Here is the call graph for this function: |
|
Reimplemented from Scene. Definition at line 257 of file Menu.cpp. References OpenGLObject::clearVertexBuffer(), Renderer::deleteShader(), Renderer::deleteTexture(), LF_SHADING, Renderer::lockFlags, LOG_SUCCESS, Scene::m_loaded, m_objects, Scene::m_parent, m_shader, m_sounds, m_texModels, m_textures, MENU_OBJECTS, MENU_SOUNDS, MENU_TEXTURES, MODELS, Application::renderer, Sound::unload(), unloadCreate(), unloadJoin(), unloadMain(), and unloadSettings(). Referenced by ~Menu(). Here is the call graph for this function: |
|
Definition at line 332 of file Menu.cpp. Referenced by unload(). |
|
Definition at line 339 of file Menu.cpp. Referenced by unload(). |
|
Definition at line 317 of file Menu.cpp. References Renderer::deleteTexture(), m_mainTextures, Scene::m_parent, MENU_MAIN_TEXTURES, and Application::renderer. Referenced by unload(). Here is the call graph for this function: |
|
Definition at line 346 of file Menu.cpp. Referenced by unload(). |
|
Reimplemented from Scene. Definition at line 353 of file Menu.cpp. References Scene::m_loaded, updateCreate(), updateCredits(), updateJoin(), updateMain(), and updateSettings(). Here is the call graph for this function: |
|
Definition at line 410 of file Menu.cpp. References handleChar(), Application::keys, m_menu, Scene::m_parent, m_selected, m_sounds, MENU_CREATE, MENU_INPUT_CREATE_INPUT_MAX, MENU_INPUT_CREATE_INPUT_MIN, MENU_MAIN, MENU_SOUND_SELECT, Sound::play(), and setCamera(). Referenced by update(). Here is the call graph for this function: |
|
Definition at line 510 of file Menu.cpp. References Application::keys, m_camDist, m_menu, Scene::m_parent, MENU_CREDITS, MENU_MAIN, and setCamera(). Referenced by update(). Here is the call graph for this function: |
|
Definition at line 451 of file Menu.cpp. References handleChar(), Application::keys, m_menu, Scene::m_parent, m_selected, m_sounds, MENU_INPUT_JOIN_INPUT_MAX, MENU_INPUT_JOIN_INPUT_MIN, MENU_JOIN, MENU_MAIN, MENU_SOUND_SELECT, Sound::play(), and setCamera(). Referenced by update(). Here is the call graph for this function: |
|
Definition at line 369 of file Menu.cpp. References Application::hWnd, Application::keys, m_menu, Scene::m_parent, m_selection, m_sounds, m_vMain, m_vSelection, MENU_MAIN, MENU_MAIN_SELECTIONS, MENU_SOUND_DOSELECT, MENU_SOUND_SELECT, menuMainSelect(), Sound::play(), and setCamera(). Referenced by update(). Here is the call graph for this function: |
|
Definition at line 493 of file Menu.cpp. References Application::keys, m_menu, Scene::m_parent, MENU_MAIN, MENU_SETTINGS, and setCamera(). Referenced by update(). Here is the call graph for this function: |
|
Definition at line 176 of file Menu.h. Referenced by drawCreate(), drawJoin(), drawSettings(), setCamera(), and updateCredits(). |
|
Definition at line 170 of file Menu.h. Referenced by drawCreate(), drawJoin(), handleChar(), loadCreate(), and loadJoin(). |
|
Definition at line 183 of file Menu.h. Referenced by drawCreate(), drawFrame(), drawJoin(), drawMain(), and drawSettings(). |
|
Definition at line 168 of file Menu.h. Referenced by drawFrame(), and load(). |
|
Definition at line 155 of file Menu.h. Referenced by drawCreate(), drawFrame(), drawJoin(), drawMain(), drawSettings(), loadMain(), and unloadMain(). |
|
Definition at line 174 of file Menu.h. Referenced by drawCreate(), drawCredits(), drawJoin(), drawMain(), drawSelection(), drawSettings(), handleChar(), load(), menuMainSelect(), updateCreate(), updateCredits(), updateJoin(), updateMain(), and updateSettings(). |
|
Definition at line 156 of file Menu.h. Referenced by drawCreate(), drawFrame(), drawJoin(), drawMain(), drawSelection(), drawSettings(), load(), Menu(), and unload(). |
|
Definition at line 180 of file Menu.h. Referenced by drawFrame(), and load(). |
|
Definition at line 167 of file Menu.h. Referenced by drawFrame(), and load(). |
|
Definition at line 171 of file Menu.h. Referenced by drawCreate(), drawJoin(), handleChar(), loadCreate(), loadJoin(), updateCreate(), and updateJoin(). |
|
Definition at line 173 of file Menu.h. Referenced by drawSelection(), load(), menuMainSelect(), and updateMain(). |
|
Definition at line 186 of file Menu.h. Referenced by drawCreate(), drawJoin(), handleChar(), and load(). |
|
|
|
Definition at line 158 of file Menu.h. Referenced by load(), unload(), updateCreate(), updateJoin(), and updateMain(). |
|
Definition at line 185 of file Menu.h. Referenced by drawCreate(), drawJoin(), setModel(), and unload(). |
|
Definition at line 154 of file Menu.h. Referenced by drawFrame(), drawLabel(), drawSelect(), drawSelection(), load(), and unload(). |
|
Definition at line 161 of file Menu.h. Referenced by drawCreate(), and loadCreate(). |
|
Definition at line 162 of file Menu.h. Referenced by drawJoin(), and loadJoin(). |
|
Definition at line 160 of file Menu.h. Referenced by drawMain(), loadMain(), and updateMain(). |
|
Definition at line 164 of file Menu.h. Referenced by drawSelection(), and updateMain(). |
|
Definition at line 163 of file Menu.h. Referenced by drawSettings(), and loadSettings(). |
|
Definition at line 165 of file Menu.h. Referenced by drawFrame(), and load(). |
|
Definition at line 181 of file Menu.h. Referenced by drawFrame(), and load(). |