Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/GameView.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | public: | ||||
CCinemaManager* GetCinema(); | CCinemaManager* GetCinema(); | ||||
CObjectManager& GetObjectManager(); | CObjectManager& GetObjectManager(); | ||||
// Implementations of Scene | // Implementations of Scene | ||||
void EnumerateObjects(const CFrustum& frustum, SceneCollector* c) override; | void EnumerateObjects(const CFrustum& frustum, SceneCollector* c) override; | ||||
CLOSTexture& GetLOSTexture() override; | CLOSTexture& GetLOSTexture() override; | ||||
CTerritoryTexture& GetTerritoryTexture() override; | CTerritoryTexture& GetTerritoryTexture() override; | ||||
/** | |||||
* Return the graphics handler for water. | |||||
*/ | |||||
const WaterManager& GetWaterManager() const; | |||||
WaterManager& GetMutableWaterManager(); | |||||
private: | private: | ||||
// Unloads all graphics resources loaded by RegisterInit. | // Unloads all graphics resources loaded by RegisterInit. | ||||
void UnloadResources(); | void UnloadResources(); | ||||
// Checks whether lighting environment has changed and update vertex data if necessary. | // Checks whether lighting environment has changed and update vertex data if necessary. | ||||
void CheckLightEnv(); | void CheckLightEnv(); | ||||
CGameViewImpl* m; | CGameViewImpl* m; | ||||
}; | }; | ||||
extern InReaction game_view_handler(const SDL_Event_* ev); | extern InReaction game_view_handler(const SDL_Event_* ev); | ||||
#endif // INCLUDED_GAMEVIEW | #endif // INCLUDED_GAMEVIEW |
Wildfire Games · Phabricator