RigsofRods
Soft-body Physics Simulation
|
Provides a 3D graphical representation of the simulation Idea: simulation runs at it's own constant rate, scene updates and rendering run asynchronously. More...
#include <GfxScene.h>
Public Member Functions | |
void | Init () |
void | CreateDustPools () |
DustPool * | GetDustPool (const char *name) |
void | SetParticlesVisible (bool visible) |
void | DrawNetLabel (Ogre::Vector3 pos, float cam_dist, std::string const &nick, int colornum) |
void | UpdateScene (float dt_sec) |
void | ClearScene () |
void | RegisterGfxActor (RoR::GfxActor *gfx_actor) |
void | RemoveGfxActor (RoR::GfxActor *gfx_actor) |
void | RegisterGfxCharacter (RoR::GfxCharacter *gfx_character) |
void | RemoveGfxCharacter (RoR::GfxCharacter *gfx_character) |
void | BufferSimulationData () |
Run this when simulation is halted. More... | |
GameContextSB & | GetSimDataBuffer () |
GfxEnvmap & | GetEnvMap () |
RoR::SkidmarkConfig * | GetSkidmarkConf () |
Ogre::SceneManager * | GetSceneManager () |
std::vector< GfxActor * > & | GetGfxActors () |
std::vector< GfxCharacter * > & | GetGfxCharacters () |
Private Attributes | |
std::map< std::string, DustPool * > | m_dustpools |
Ogre::SceneManager * | m_scene_manager = nullptr |
std::vector< GfxActor * > | m_all_gfx_actors |
std::vector< GfxActor * > | m_live_gfx_actors |
std::vector< GfxCharacter * > | m_all_gfx_characters |
RoR::GfxEnvmap | m_envmap |
GameContextSB | m_simbuf |
SkidmarkConfig | m_skidmark_conf |
Provides a 3D graphical representation of the simulation Idea: simulation runs at it's own constant rate, scene updates and rendering run asynchronously.
Definition at line 45 of file GfxScene.h.
void GfxScene::BufferSimulationData | ( | ) |
Run this when simulation is halted.
Definition at line 281 of file GfxScene.cpp.
void GfxScene::ClearScene | ( | ) |
Definition at line 60 of file GfxScene.cpp.
void GfxScene::CreateDustPools | ( | ) |
void GfxScene::DrawNetLabel | ( | Ogre::Vector3 | pos, |
float | cam_dist, | ||
std::string const & | nick, | ||
int | colornum | ||
) |
Definition at line 339 of file GfxScene.cpp.
DustPool * GfxScene::GetDustPool | ( | const char * | name | ) |
|
inline |
|
inline |
Definition at line 65 of file GfxScene.h.
|
inline |
Definition at line 66 of file GfxScene.h.
|
inline |
|
inline |
|
inline |
Definition at line 63 of file GfxScene.h.
void GfxScene::Init | ( | ) |
Definition at line 82 of file GfxScene.cpp.
void GfxScene::RegisterGfxActor | ( | RoR::GfxActor * | gfx_actor | ) |
void GfxScene::RegisterGfxCharacter | ( | RoR::GfxCharacter * | gfx_character | ) |
void GfxScene::RemoveGfxActor | ( | RoR::GfxActor * | gfx_actor | ) |
void GfxScene::RemoveGfxCharacter | ( | RoR::GfxCharacter * | gfx_character | ) |
void GfxScene::SetParticlesVisible | ( | bool | visible | ) |
void GfxScene::UpdateScene | ( | float | dt_sec | ) |
Definition at line 90 of file GfxScene.cpp.
|
private |
Definition at line 72 of file GfxScene.h.
|
private |
Definition at line 74 of file GfxScene.h.
|
private |
Definition at line 70 of file GfxScene.h.
|
private |
Definition at line 75 of file GfxScene.h.
|
private |
Definition at line 73 of file GfxScene.h.
|
private |
Definition at line 71 of file GfxScene.h.
|
private |
Definition at line 76 of file GfxScene.h.
|
private |
Definition at line 77 of file GfxScene.h.