|
Serious Sam's Bogus Detour
2016/06/09
Engine documentation
|
Classes | |
| class | Texture2D |
| A texture handle used for rendering PNG images. More... | |
| class | TempTexture2D |
| A refcounted texture handle. More... | |
| class | Bitmap2D |
| A bitmap handle used for rendering TGA images. More... | |
| class | BitmapString |
| A rendered string of text from a font. More... | |
| class | BitmapFont |
| A font that can be used to create BitmapString objects. More... | |
| class | Sprite |
| An animated sprite that can be rendered on the GUI. More... | |
| class | SpriteBatch |
| Rendering object for rendering things on the GUI. More... | |
| class Texture2D |
| class TempTexture2D |
A refcounted texture handle.
Public Member Functions | |
| int32 | GetWidth () |
| int32 | GetHeight () |
| Texture2D * | GetTexture () |
| int32 TempTexture2D::GetHeight | ( | ) |
| Texture2D* TempTexture2D::GetTexture | ( | ) |
| int32 TempTexture2D::GetWidth | ( | ) |
| class Bitmap2D |
| class BitmapString |
A rendered string of text from a font.
Public Member Functions | |
| int32 | GetWidth () |
| int32 | GetHeight () |
| void | ResetColor () |
| void | SetColor (const vec4 &color) |
| void | SetColorGradient (const vec4 &color1, const vec4 &color2, GradientDirection dir) |
| int32 BitmapString::GetHeight | ( | ) |
| int32 BitmapString::GetWidth | ( | ) |
| void BitmapString::ResetColor | ( | ) |
| void BitmapString::SetColor | ( | const vec4 & | color | ) |
| void BitmapString::SetColorGradient | ( | const vec4 & | color1, |
| const vec4 & | color2, | ||
| GradientDirection | dir | ||
| ) |
| class BitmapFont |
A font that can be used to create BitmapString objects.
Public Member Functions | |
| BitmapString * | BuildText (const string &text, int32 width=-1, TextAlignment align=TextAlignment::Left) |
| vec2 | MeasureText (string text, int32 width=-1) |
| BitmapString* BitmapFont::BuildText | ( | const string & | text, |
| int32 | width = -1, |
||
| TextAlignment | align = TextAlignment::Left |
||
| ) |
| class Sprite |
An animated sprite that can be rendered on the GUI.
Public Member Functions | |
| Texture2D * | GetTexture2D () |
| uint32 | GetLength () |
| int32 | GetWidth () |
| int32 | GetHeight () |
| vec4 | GetFrame (int32 time) |
| vec4 Sprite::GetFrame | ( | int32 | time | ) |
| int32 Sprite::GetHeight | ( | ) |
| uint32 Sprite::GetLength | ( | ) |
| Texture2D* Sprite::GetTexture2D | ( | ) |
| int32 Sprite::GetWidth | ( | ) |
| class SpriteBatch |
Rendering object for rendering things on the GUI.
Public Member Functions | |
| void | Begin (int32 width, int32 height, float scale, bool grayscale=false) |
| void | End () |
| void | SetGrayscale (bool grayscale) |
| void | PushTransformation (const mat3 &transform, const vec2 &pivot) |
| void | PushTransformation (const mat4 &transform) |
| void | PopTransformation () |
| void | PushClipping (const vec4 &rect, bool inverse=false) |
| void | PopClipping () |
| void | PauseClipping () |
| void | ResumeClipping () |
| void | DrawString (const vec2 &pos, BitmapString &string) |
| void | DrawLine (const vec2 &from, const vec2 &to, float thickness, const vec4 &color) |
| void | DrawSprite (const vec2 &pos, Sprite *sprite, uint32 time, const vec4 &color=vec4(1, 1, 1, 1)) |
| void | DrawSprite (Texture2D *tex, const vec4 &pos, const vec4 &src, const vec4 &color=vec4(1, 1, 1, 1)) |
| void | DrawSpriteRadial (const vec2 &pos, Sprite *sprite, uint32 time, float r, const vec4 &color=vec4(1, 1, 1, 1)) |
| void | DrawSpriteRadial (Texture2D *tex, const vec4 &pos, const vec4 &src, float r, const vec4 &color=vec4(1, 1, 1, 1)) |
| void | DrawRectangle (const vec4 &rect, const vec4 &color, int32 thickness=1) |
| void | FillRectangle (const vec4 &rect, const vec4 &color) |
| void | DrawUnitScene (const vec2 &pos, const vec2 &size, UnitScene *scene, uint32 time) |
| void SpriteBatch::Begin | ( | int32 | width, |
| int32 | height, | ||
| float | scale, | ||
| bool | grayscale = false |
||
| ) |
| void SpriteBatch::DrawLine | ( | const vec2 & | from, |
| const vec2 & | to, | ||
| float | thickness, | ||
| const vec4 & | color | ||
| ) |
| void SpriteBatch::DrawSprite | ( | const vec2 & | pos, |
| Sprite * | sprite, | ||
| uint32 | time, | ||
| const vec4 & | color = vec4(1, 1, 1, 1) |
||
| ) |
| void SpriteBatch::DrawSprite | ( | Texture2D * | tex, |
| const vec4 & | pos, | ||
| const vec4 & | src, | ||
| const vec4 & | color = vec4(1, 1, 1, 1) |
||
| ) |
| void SpriteBatch::DrawSpriteRadial | ( | const vec2 & | pos, |
| Sprite * | sprite, | ||
| uint32 | time, | ||
| float | r, | ||
| const vec4 & | color = vec4(1, 1, 1, 1) |
||
| ) |
| void SpriteBatch::DrawSpriteRadial | ( | Texture2D * | tex, |
| const vec4 & | pos, | ||
| const vec4 & | src, | ||
| float | r, | ||
| const vec4 & | color = vec4(1, 1, 1, 1) |
||
| ) |
| void SpriteBatch::DrawString | ( | const vec2 & | pos, |
| BitmapString & | string | ||
| ) |
| void SpriteBatch::DrawUnitScene | ( | const vec2 & | pos, |
| const vec2 & | size, | ||
| UnitScene * | scene, | ||
| uint32 | time | ||
| ) |
| void SpriteBatch::End | ( | ) |
| void SpriteBatch::PauseClipping | ( | ) |
| void SpriteBatch::PopClipping | ( | ) |
| void SpriteBatch::PopTransformation | ( | ) |
| void SpriteBatch::PushClipping | ( | const vec4 & | rect, |
| bool | inverse = false |
||
| ) |
| void SpriteBatch::PushTransformation | ( | const mat4 & | transform | ) |
| void SpriteBatch::ResumeClipping | ( | ) |
| void SpriteBatch::SetGrayscale | ( | bool | grayscale | ) |
1.8.11