Aether3D Game Engine
Functions
ae3d::Window Namespace Reference

Window. More...

Functions

void Create (int width, int height, WindowCreateFlags flags)
 
void GetSize (int &outWidth, int &outHeight)
 
bool IsOpen ()
 
void PumpEvents ()
 Reads events from windowing system to be used in PollEvent depending on platform.
 
bool PollEvent (WindowEvent &outEvent)
 
void SetTitle (const char *title)
 
void SwapBuffers ()
 Displays the contents of the screen.
 

Detailed Description

Window.

Function Documentation

void ae3d::Window::Create ( int  width,
int  height,
WindowCreateFlags  flags 
)

Creates a window and rendering context.

Parameters
widthWidth in pixels or 0 to use desktop width.
heightHeight in pixels or 0 to use desktop height.
flagsBitmask of creation flags.
void ae3d::Window::GetSize ( int &  outWidth,
int &  outHeight 
)
Parameters
outWidthReturns window width in pixels.
outHeightReturns window height in pixels.
bool ae3d::Window::IsOpen ( )
Returns
True if window is open.
bool ae3d::Window::PollEvent ( WindowEvent outEvent)

Reads and discards the most recent event.

Returns
True if there are more events.
void ae3d::Window::SetTitle ( const char *  title)
Parameters
titleTitle.