Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Public Member Functions | List of all members
Terminal Class Reference

#include <Terminal.h>

Public Member Functions

 Terminal (Scene *scene, InputHandler *inputHandler, FontRenderer *fontRenderer, Commander *commander)
 
void setActive (bool active)
 
bool isActive ()
 
void characterCallback (int character, int action)
 
void keyCallback (int key, int action)
 
void render ()
 
void update (double frameLength)
 
bool requestsInactive ()
 

Detailed Description

Draws a command line terminal on the screen. The user can input and execute commands. For a description of the commands, consult the index page.

Constructor & Destructor Documentation

Terminal::Terminal ( Scene scene,
InputHandler inputHandler,
FontRenderer fontRenderer,
Commander commander 
)

Creates a new terminal

Parameters
scenecurrently active scene
inputHandlerunused
fontRendererused to draw input text
commanderused to load and save scenes

Member Function Documentation

void Terminal::characterCallback ( int  character,
int  action 
)

Callback method for character events from GLFW.

void Terminal::keyCallback ( int  key,
int  action 
)

Callback method for key events from GLFW.

void Terminal::render ( )

Draws command line and input text

bool Terminal::requestsInactive ( )

Returns true iff the user wants to close the terminal

void Terminal::setActive ( bool  active)

This application calls this to make the terminal active. This means it will be displayed and register its own key and character callback methods with GLFW.

void Terminal::update ( double  frameLength)

Lets the user input text and execute commands


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