MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / Initialize

Method Initialize

GTE/Samples/SceneGraphs/Terrain/TerrainWindow3.cpp:320–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void TerrainWindow3::TerrainCameraRig::Initialize(std::shared_ptr<Camera> const& camera,
321 float translationSpeed, float rotationSpeed, std::shared_ptr<Terrain> const& terrain,
322 float heightAboveTerrain)
323{
324 mCamera = camera;
325 mTerrain = terrain;
326 mHeightAboveTerrain = heightAboveTerrain;
327 Set(mCamera, translationSpeed, rotationSpeed);
328 RegisterMoveForward(KEY_UP);
329 RegisterMoveBackward(KEY_DOWN);
330 RegisterMoveUp(KEY_HOME);
331 RegisterMoveDown(KEY_END);
332 RegisterTurnRight(KEY_RIGHT);
333 RegisterTurnLeft(KEY_LEFT);
334}
335
336void TerrainWindow3::TerrainCameraRig::MoveForward()
337{

Callers 1

TerrainWindow3Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected