Changeset View
Changeset View
Standalone View
Standalone View
source/ps/GameSetup/GameSetup.cpp
Show All 26 Lines | |||||
#include "lib/res/h_mgr.h" | #include "lib/res/h_mgr.h" | ||||
#include "lib/res/graphics/cursor.h" | #include "lib/res/graphics/cursor.h" | ||||
#include "graphics/CinemaManager.h" | #include "graphics/CinemaManager.h" | ||||
#include "graphics/FontMetrics.h" | #include "graphics/FontMetrics.h" | ||||
#include "graphics/GameView.h" | #include "graphics/GameView.h" | ||||
#include "graphics/LightEnv.h" | #include "graphics/LightEnv.h" | ||||
#include "graphics/MapReader.h" | #include "graphics/MapReader.h" | ||||
#include "graphics/ModelDef.h" | |||||
#include "graphics/MaterialManager.h" | #include "graphics/MaterialManager.h" | ||||
#include "graphics/TerrainTextureManager.h" | #include "graphics/TerrainTextureManager.h" | ||||
#include "gui/CGUI.h" | #include "gui/CGUI.h" | ||||
#include "gui/GUIManager.h" | #include "gui/GUIManager.h" | ||||
#include "i18n/L10n.h" | #include "i18n/L10n.h" | ||||
#include "maths/MathUtil.h" | #include "maths/MathUtil.h" | ||||
#include "network/NetServer.h" | #include "network/NetServer.h" | ||||
#include "network/NetClient.h" | #include "network/NetClient.h" | ||||
▲ Show 20 Lines • Show All 563 Lines • ▼ Show 20 Lines | static void InitRenderer() | ||||
// I haven't seen the camera affecting GUI rendering and such, but the | // I haven't seen the camera affecting GUI rendering and such, but the | ||||
// viewport has to be updated according to the video mode | // viewport has to be updated according to the video mode | ||||
SViewPort vp; | SViewPort vp; | ||||
vp.m_X = 0; | vp.m_X = 0; | ||||
vp.m_Y = 0; | vp.m_Y = 0; | ||||
vp.m_Width = g_xres; | vp.m_Width = g_xres; | ||||
vp.m_Height = g_yres; | vp.m_Height = g_yres; | ||||
g_Renderer.SetViewport(vp); | g_Renderer.SetViewport(vp); | ||||
ModelDefActivateFastImpl(); | |||||
ColorActivateFastImpl(); | ColorActivateFastImpl(); | ||||
ModelRenderer::Init(); | ModelRenderer::Init(); | ||||
} | } | ||||
static void InitSDL() | static void InitSDL() | ||||
{ | { | ||||
#if OS_LINUX | #if OS_LINUX | ||||
// In fullscreen mode when SDL is compiled with DGA support, the mouse | // In fullscreen mode when SDL is compiled with DGA support, the mouse | ||||
▲ Show 20 Lines • Show All 1,017 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator