PGR Copakond OpenGL Engine - Bowling
Loading...
Searching...
No Matches
copakond::LevelEditor Class Reference

Runtime editor utility allowing the user to pick, move, and save mesh transformations. More...

#include <levelEditor.h>

Public Member Functions

 LevelEditor (Scene *scene)
void onObjectClickedEvent (int id)
 Selects an object based on stencil buffer ID.
void onKeyboardEvent (unsigned char key, int x, int y, bool isDown)
 Handles transformation switching and applying delta modifications.
void onMouseWheelEvent (int wheel, int direction, int x, int y)
void saveSnapshot (std::string filename="meshes.txt")
 Exports modified mesh transformations to a text file.
void undo ()
EditMode getEditMode () const
EditAxe getEditAxe () const

Detailed Description

Runtime editor utility allowing the user to pick, move, and save mesh transformations.

Constructor & Destructor Documentation

◆ LevelEditor()

copakond::LevelEditor::LevelEditor ( Scene * scene)
inline

Member Function Documentation

◆ getEditAxe()

EditAxe copakond::LevelEditor::getEditAxe ( ) const
inline

◆ getEditMode()

EditMode copakond::LevelEditor::getEditMode ( ) const
inline

◆ onKeyboardEvent()

void copakond::LevelEditor::onKeyboardEvent ( unsigned char key,
int x,
int y,
bool isDown )

Handles transformation switching and applying delta modifications.

◆ onMouseWheelEvent()

void copakond::LevelEditor::onMouseWheelEvent ( int wheel,
int direction,
int x,
int y )

◆ onObjectClickedEvent()

void copakond::LevelEditor::onObjectClickedEvent ( int id)

Selects an object based on stencil buffer ID.

◆ saveSnapshot()

void copakond::LevelEditor::saveSnapshot ( std::string filename = "meshes.txt")

Exports modified mesh transformations to a text file.

◆ undo()

void copakond::LevelEditor::undo ( )

The documentation for this class was generated from the following files: