Skip to content
davido262 edited this page Nov 11, 2012 · 3 revisions

Description of the Device manager.

This creates a new window with an OpenGL context. It allows to set the window title, the resolution and whether it runs windowed or in fullscreen. The Operating System mouse cursor gets hidden. The Device contains the Inputs manager which is responsible for polling user inputs.

The Inputs manager binds each user input with a command string. It stores bindings for: key press, key release, while is key pressed, mouse button press, mouse button release, while is mouse button pressed and mouse motion. Whenever the specified event occurs, the bound command will be pushed to the Terminal's queue of commands.

Initialization

It calls the SDL_Init function with an OpenGL context, sets some of the OpenGL attributes and then creates a video context window.

Shutdown

It only calls the SDL_Quit function.

Clone this wiki locally