flimEngine
Global Methods
Collaboration diagram for Global Methods:

Functions

static int Flim::GetHeight ()
 Gets the height of the window. More...
 
static int Flim::GetWidth ()
 Gets the width of the window. More...
 
static void Flim::SetColor (float r, float g, float b, float a)
 Sets an RGBA color for the background. More...
 
static void Flim::SetWidthHeight (int x, int y)
 Sets width and height of window. More...
 
static void Flim::SetWindowName (char *in)
 Sets window name. More...
 
static std::string Flim::GetWindowName ()
 Gets window name. More...
 
static Vect Flim::GetColor ()
 Gets the color. More...
 

Detailed Description

Function Documentation

◆ GetColor()

static Vect & Flim::GetColor ( )
inlinestatic

Gets the color.

Author
Jack Campbell
Date
3/12/2017
Returns
The color.

◆ GetHeight()

static int Flim::GetHeight ( )
inlinestatic

Gets the height of the window.

Author
Jack Campbell
Date
3/5/2017
Returns
The height.

◆ GetWidth()

static int Flim::GetWidth ( )
inlinestatic

Gets the width of the window.

Author
Jack Campbell
Date
3/5/2017
Get the integer width of the window.
int windowWidth = Flim::GetWidth();
Returns
The width.

◆ GetWindowName()

static std::string Flim::GetWindowName ( )
inlinestatic

Gets window name.

Author
Jack Campbell
Date
3/12/2017
Returns the name of the Window.
Returns
The window name.

◆ SetColor()

static void Flim::SetColor ( float  r,
float  g,
float  b,
float  a 
)
inlinestatic

Sets an RGBA color for the background.

Author
Jack Campbell
Date
3/5/2017
Sets the color that appears behind all other rendered graphics objects, takes NORMALIZED RGBA values.
Red, green, yellow, alpha (transparency). Google "normalized RGBA color picker" to visualize a color before you use it.
// black
Flim::SetColor(1.0f, 1.0f, 1.0f, 1.0f);
Parameters
rR component of color.
gG component of color.
bB component of color.
aA component of color.

◆ SetWidthHeight()

static void Flim::SetWidthHeight ( int  x,
int  y 
)
inlinestatic

Sets width and height of window.

Author
Jack Campbell
Date
3/5/2017
Get the integer height of the window.
int windowHeight = Flim::GetHeight();
Parameters
xThe x coordinate.
yThe y coordinate.

◆ SetWindowName()

static void Flim::SetWindowName ( char *  in)
inlinestatic

Sets window name.

Author
Jack Campbell
Date
3/5/2017
Sets the text that appears at the top of the game window.
Parameters
[in,out]inIf non-null, the in.