#include <render2d.h>
Inherits W3DMPO.
Inherited by Render2DTextClass.
Public Member Functions | |
| Render2DClass (TextureClass *tex=NULL) | |
| virtual | ~Render2DClass (void) |
| virtual void | Reset (void) |
| void | Render (void) |
| void | Set_Coordinate_Range (const RectClass &range) |
| void | Set_Texture (TextureClass *tex) |
| TextureClass * | Peek_Texture (void) |
| void | Set_Texture (const char *filename) |
| void | Enable_Additive (bool b) |
| void | Enable_Alpha (bool b) |
| void | Enable_Grayscale (bool b) |
| added for generals to draw disabled button states - MW | |
| void | Enable_Texturing (bool b) |
| ShaderClass * | Get_Shader (void) |
| void | Add_Quad (const Vector2 &v0, const Vector2 &v1, const Vector2 &v2, const Vector2 &v3, const RectClass &uv, unsigned long color=0xFFFFFFFF) |
| void | Add_Quad_Backfaced (const Vector2 &v0, const Vector2 &v1, const Vector2 &v2, const Vector2 &v3, const RectClass &uv, unsigned long color=0xFFFFFFFF) |
| void | Add_Quad (const RectClass &screen, const RectClass &uv, unsigned long color=0xFFFFFFFF) |
| void | Add_Quad (const Vector2 &v0, const Vector2 &v1, const Vector2 &v2, const Vector2 &v3, unsigned long color=0xFFFFFFFF) |
| void | Add_Quad (const RectClass &screen, unsigned long color=0xFFFFFFFF) |
| void | Add_Quad_VGradient (const Vector2 &v0, const Vector2 &v1, const Vector2 &v2, const Vector2 &v3, const RectClass &uv, unsigned long top_color, unsigned long bottom_color) |
| void | Add_Quad_VGradient (const RectClass &screen, unsigned long top_color, unsigned long bottom_color) |
| void | Add_Quad_HGradient (const Vector2 &v0, const Vector2 &v1, const Vector2 &v2, const Vector2 &v3, const RectClass &uv, unsigned long left_color, unsigned long right_color) |
| void | Add_Quad_HGradient (const RectClass &screen, unsigned long left_color, unsigned long right_color) |
| void | Add_Tri (const Vector2 &v0, const Vector2 &v1, const Vector2 &v2, const Vector2 &uv0, const Vector2 &uv1, const Vector2 &uv2, unsigned long color=0xFFFFFFFF) |
| void | Add_Line (const Vector2 &a, const Vector2 &b, float width, unsigned long color=0xFFFFFFFF) |
| void | Add_Line (const Vector2 &a, const Vector2 &b, float width, const RectClass &uv, unsigned long color=0xFFFFFFFF) |
| void | Add_Line (const Vector2 &a, const Vector2 &b, float width, unsigned long color, unsigned long color2) |
| void | Add_Line (const Vector2 &a, const Vector2 &b, float width, const RectClass &uv, unsigned long color, unsigned long color2) |
| void | Add_Outline (const RectClass &rect, float width=1.0F, unsigned long color=0xFFFFFFFF) |
| void | Add_Outline (const RectClass &rect, float width, const RectClass &uv, unsigned long color=0xFFFFFFFF) |
| void | Add_Rect (const RectClass &rect, float border_width=1.0F, uint32 border_color=0xFF000000, uint32 fill_color=0xFFFFFFFF) |
| void | Set_Hidden (bool hide) |
| void | Set_Z_Value (float z_value) |
| void | Move (const Vector2 &a) |
| void | Force_Alpha (float alpha) |
| void | Force_Color (int color) |
| DynamicVectorClass< unsigned long > & | Get_Color_Array (void) |
Public Member Functions inherited from W3DMPO | |
| virtual | ~W3DMPO () |
Static Public Member Functions | |
| static ShaderClass | Get_Default_Shader (void) |
| static void | Set_Screen_Resolution (const RectClass &screen) |
| static const RectClass & | Get_Screen_Resolution (void) |
Protected Member Functions | |
| Vector2 | Convert_Vert (const Vector2 &v) |
| void | Convert_Vert (Vector2 &vert_out, const Vector2 &vert_in) |
| void | Convert_Vert (Vector2 &vert_out, float x_in, float y_in) |
| void | Update_Bias (void) |
| void | Internal_Add_Quad_Vertices (const Vector2 &v0, const Vector2 &v1, const Vector2 &v2, const Vector2 &v3) |
| void | Internal_Add_Quad_Vertices (const RectClass &screen) |
| void | Internal_Add_Quad_UVs (const RectClass &uv) |
| void | Internal_Add_Quad_Colors (unsigned long color) |
| void | Internal_Add_Quad_VColors (unsigned long color1, unsigned long color2) |
| void | Internal_Add_Quad_HColors (unsigned long color1, unsigned long color2) |
| void | Internal_Add_Quad_Indicies (int start_vert_index, bool backfaced=false) |
Protected Member Functions inherited from W3DMPO | |
| virtual int | glueEnforcer () const =0 |
Protected Attributes | |
| Vector2 | CoordinateScale |
| Vector2 | CoordinateOffset |
| Vector2 | BiasedCoordinateOffset |
| TextureClass * | Texture |
| ShaderClass | Shader |
| DynamicVectorClass< unsigned short > | Indices |
| unsigned short | PreAllocatedIndices [60] |
| DynamicVectorClass< Vector2 > | Vertices |
| Vector2 | PreAllocatedVertices [60] |
| DynamicVectorClass< Vector2 > | UVCoordinates |
| Vector2 | PreAllocatedUVCoordinates [60] |
| DynamicVectorClass< unsigned long > | Colors |
| unsigned long | PreAllocatedColors [60] |
| bool | IsHidden |
| bool | IsGrayScale |
| float | ZValue |
Static Protected Attributes | |
| static RectClass | ScreenResolution |
Definition at line 100 of file render2d.h.
| Render2DClass::Render2DClass | ( | TextureClass * | tex = NULL | ) |
Definition at line 70 of file render2d.cpp.
|
virtual |
Definition at line 87 of file render2d.cpp.
| void Render2DClass::Add_Line | ( | const Vector2 & | a, |
| const Vector2 & | b, | ||
| float | width, | ||
| const RectClass & | uv, | ||
| unsigned long | color, | ||
| unsigned long | color2 ) |
Definition at line 549 of file render2d.cpp.
| void Render2DClass::Add_Line | ( | const Vector2 & | a, |
| const Vector2 & | b, | ||
| float | width, | ||
| const RectClass & | uv, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 529 of file render2d.cpp.
| void Render2DClass::Add_Line | ( | const Vector2 & | a, |
| const Vector2 & | b, | ||
| float | width, | ||
| unsigned long | color, | ||
| unsigned long | color2 ) |
Definition at line 544 of file render2d.cpp.
| void Render2DClass::Add_Line | ( | const Vector2 & | a, |
| const Vector2 & | b, | ||
| float | width, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 524 of file render2d.cpp.
| void Render2DClass::Add_Outline | ( | const RectClass & | rect, |
| float | width, | ||
| const RectClass & | uv, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 591 of file render2d.cpp.
| void Render2DClass::Add_Outline | ( | const RectClass & | rect, |
| float | width = 1.0F, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 586 of file render2d.cpp.
| void Render2DClass::Add_Quad | ( | const RectClass & | screen, |
| const RectClass & | uv, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 463 of file render2d.cpp.
| void Render2DClass::Add_Quad | ( | const RectClass & | screen, |
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 479 of file render2d.cpp.
| void Render2DClass::Add_Quad | ( | const Vector2 & | v0, |
| const Vector2 & | v1, | ||
| const Vector2 & | v2, | ||
| const Vector2 & | v3, | ||
| const RectClass & | uv, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 413 of file render2d.cpp.
| void Render2DClass::Add_Quad | ( | const Vector2 & | v0, |
| const Vector2 & | v1, | ||
| const Vector2 & | v2, | ||
| const Vector2 & | v3, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 471 of file render2d.cpp.
| void Render2DClass::Add_Quad_Backfaced | ( | const Vector2 & | v0, |
| const Vector2 & | v1, | ||
| const Vector2 & | v2, | ||
| const Vector2 & | v3, | ||
| const RectClass & | uv, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 421 of file render2d.cpp.
| void Render2DClass::Add_Quad_HGradient | ( | const RectClass & | screen, |
| unsigned long | left_color, | ||
| unsigned long | right_color ) |
Definition at line 454 of file render2d.cpp.
| void Render2DClass::Add_Quad_HGradient | ( | const Vector2 & | v0, |
| const Vector2 & | v1, | ||
| const Vector2 & | v2, | ||
| const Vector2 & | v3, | ||
| const RectClass & | uv, | ||
| unsigned long | left_color, | ||
| unsigned long | right_color ) |
Definition at line 437 of file render2d.cpp.
| void Render2DClass::Add_Quad_VGradient | ( | const RectClass & | screen, |
| unsigned long | top_color, | ||
| unsigned long | bottom_color ) |
Definition at line 446 of file render2d.cpp.
| void Render2DClass::Add_Quad_VGradient | ( | const Vector2 & | v0, |
| const Vector2 & | v1, | ||
| const Vector2 & | v2, | ||
| const Vector2 & | v3, | ||
| const RectClass & | uv, | ||
| unsigned long | top_color, | ||
| unsigned long | bottom_color ) |
Definition at line 429 of file render2d.cpp.
| void Render2DClass::Add_Rect | ( | const RectClass & | rect, |
| float | border_width = 1.0F, | ||
| uint32 | border_color = 0xFF000000, | ||
| uint32 | fill_color = 0xFFFFFFFF ) |
Definition at line 563 of file render2d.cpp.
| void Render2DClass::Add_Tri | ( | const Vector2 & | v0, |
| const Vector2 & | v1, | ||
| const Vector2 & | v2, | ||
| const Vector2 & | uv0, | ||
| const Vector2 & | uv1, | ||
| const Vector2 & | uv2, | ||
| unsigned long | color = 0xFFFFFFFF ) |
Definition at line 490 of file render2d.cpp.
Definition at line 252 of file render2d.cpp.
|
protected |
Definition at line 259 of file render2d.cpp.
| void Render2DClass::Enable_Additive | ( | bool | b | ) |
Definition at line 164 of file render2d.cpp.
| void Render2DClass::Enable_Alpha | ( | bool | b | ) |
Definition at line 151 of file render2d.cpp.
| void Render2DClass::Enable_Grayscale | ( | bool | b | ) |
added for generals to draw disabled button states - MW
added for generals to draw disabled button states - MW
Definition at line 146 of file render2d.cpp.
| void Render2DClass::Enable_Texturing | ( | bool | b | ) |
Definition at line 178 of file render2d.cpp.
| void Render2DClass::Force_Alpha | ( | float | alpha | ) |
Definition at line 278 of file render2d.cpp.
| void Render2DClass::Force_Color | ( | int | color | ) |
Definition at line 288 of file render2d.cpp.
|
inline |
Definition at line 160 of file render2d.h.
|
static |
Definition at line 105 of file render2d.cpp.
|
inlinestatic |
Definition at line 164 of file render2d.h.
|
inline |
Definition at line 120 of file render2d.h.
|
protected |
Definition at line 332 of file render2d.cpp.
|
protected |
Definition at line 361 of file render2d.cpp.
|
protected |
Definition at line 376 of file render2d.cpp.
|
protected |
Definition at line 317 of file render2d.cpp.
|
protected |
Definition at line 346 of file render2d.cpp.
|
protected |
Definition at line 308 of file render2d.cpp.
|
protected |
Definition at line 300 of file render2d.cpp.
| void Render2DClass::Move | ( | const Vector2 & | a | ) |
Definition at line 268 of file render2d.cpp.
|
inline |
Definition at line 113 of file render2d.h.
| void Render2DClass::Render | ( | void | ) |
Definition at line 604 of file render2d.cpp.
|
virtual |
Reimplemented in Render2DTextClass.
Definition at line 120 of file render2d.cpp.
| void Render2DClass::Set_Coordinate_Range | ( | const RectClass & | range | ) |
Definition at line 188 of file render2d.cpp.
|
inline |
Definition at line 147 of file render2d.h.
|
static |
Definition at line 92 of file render2d.cpp.
| void Render2DClass::Set_Texture | ( | const char * | filename | ) |
Definition at line 135 of file render2d.cpp.
| void Render2DClass::Set_Texture | ( | TextureClass * | tex | ) |
Definition at line 130 of file render2d.cpp.
|
inline |
Definition at line 150 of file render2d.h.
|
protected |
Definition at line 199 of file render2d.cpp.
|
protected |
Definition at line 169 of file render2d.h.
|
protected |
Definition at line 178 of file render2d.h.
|
protected |
Definition at line 168 of file render2d.h.
|
protected |
Definition at line 167 of file render2d.h.
|
protected |
Definition at line 172 of file render2d.h.
|
protected |
Definition at line 181 of file render2d.h.
|
protected |
Definition at line 180 of file render2d.h.
|
protected |
Definition at line 179 of file render2d.h.
|
protected |
Definition at line 173 of file render2d.h.
|
protected |
Definition at line 177 of file render2d.h.
|
protected |
Definition at line 175 of file render2d.h.
|
staticprotected |
Definition at line 184 of file render2d.h.
|
protected |
Definition at line 171 of file render2d.h.
|
protected |
Definition at line 170 of file render2d.h.
|
protected |
Definition at line 176 of file render2d.h.
|
protected |
Definition at line 174 of file render2d.h.
|
protected |
Definition at line 182 of file render2d.h.