| 
    Cutout Vis2012
    
   TUWienVisualisierung2(SS2012)-AdaptiveCutaways 
   | 
 
#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 () | 
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.
| Terminal::Terminal | ( | Scene * | scene, | 
| InputHandler * | inputHandler, | ||
| FontRenderer * | fontRenderer, | ||
| Commander * | commander | ||
| ) | 
Creates a new terminal
| scene | currently active scene | 
| inputHandler | unused | 
| fontRenderer | used to draw input text | 
| commander | used to load and save scenes | 
| 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
 1.8.4