|
Path Tracer
|
#include "Interface.h"Functions | |
| void | displayCommands () |
| Prints the available commands. More... | |
| void | receiveAndExecuteGeneralCommands () |
| Receives and executes a general command. More... | |
| void | executeParametersCommands (char command) |
| Executes a command specific to the parameters page. More... | |
| void | executeObjectsCommands (char command) |
| Executes a command specific to the objects page. More... | |
| void | printAll () |
| Prints the whole page. More... | |
| void | initInterface () |
| Starts the infinite loop of the interface. More... | |
| void displayCommands | ( | ) |
Prints the available commands.
The available commands change depending on the active page.
| void executeObjectsCommands | ( | char | command | ) |
Executes a command specific to the objects page.
| void executeParametersCommands | ( | char | command | ) |
Executes a command specific to the parameters page.
| void initInterface | ( | ) |
Starts the infinite loop of the interface.
Fills the scene with a default one. Then, it calls printAll() and receiveAndExecuteGeneralCommands() indefinitely.
| void printAll | ( | ) |
Prints the whole page.
Clears the page, prints the header, information and the available commands.
| void receiveAndExecuteGeneralCommands | ( | ) |
Receives and executes a general command.
Asks a command to the user. If it is general to both main pages (exit, for example), executes it. Else, it calls executeParametersCommands() or executeObjectsCommands().