TurtleBrains  0.3.5
High quality, portable, C++ framework for rapid 2D game development.
TurtleBrains::Application::WindowProperties Struct Reference

#include <tb_application_window.hpp>

Public Member Functions

 WindowProperties (void)
 
 WindowProperties (const WindowMode &windowMode)
 

Public Attributes

tbCore::int16 mWindowWidth
 The width of the window rectangle in pixels. The actual width may be larger to account for the window border.
 
tbCore::int16 mWindowHeight
 The height of the window rectangle in pixels. The actual height may be larger to account for the window title and border.
 
tbCore::int16 mWindowPositionX
 The position of the left edge of the window in pixels.
 
tbCore::int16 mWindowPositionY
 The position of the top edge of the window in pixels.
 
WindowMode mWindowMode
 True if the game/application should take over the entire screen. (Not fully supported yet)
 
bool mVerticalSync
 True if the rendering should be synchronized with the monitors refresh rate.
 

Detailed Description

Holds information about the size and position of a window along with the context information for OpenGL.

Constructor & Destructor Documentation

TurtleBrains::Application::WindowProperties::WindowProperties ( void  )

Sets the default width/height and location for the window. Likely to be (1280x720, centered on screen - or at 100,100)