nw::demo::GraphicsDrawing Classclass GraphicsDrawing
Class for drawing characters and primitives for demos.
| Constructors and Destructors | ||
|---|---|---|
SetScreenSize
|
Sets the screen size. | |
GraphicsDrawing
|
Constructor. | |
~GraphicsDrawing
|
Destructor. | |
| Shape Drawing | ||
|
Initializes shape rendering. | |
|
Destroys a shape resource. | |
SetupShape
|
Sets up shape rendering. | |
SetMaxShapeVertexCount
|
Sets the maximum number of vertices to render in shape rendering. | |
SetLineWidth
|
Sets the line size. | |
BeginDrawingShape
|
Function that starts shape rendering. | |
EndDrawingShape
|
Function that ends shape rendering. | |
DrawLine
|
Draws a line. The CPU generates the vertices without using a line shader. | |
DrawRectangle
|
Renders a line in the shape of a rectangle. The CPU generates the vertices without using a line shader. | |
FillRectangle
|
Draws a rectangle. | |
FillTriangle
|
Draws a triangle. | |
FillTriangles
|
Draws a triangle. | |
| Font Drawing | ||
SetMaxTextCount
|
Specifies the maximum number of characters that can be drawn. | |
InitializeFont
|
Initializes a font. | |
DestroyFont
|
Destroys a font. | |
BeginDrawingString
|
demo::GraphicsDrawing class function for starting font rendering. |
|
DrawString
|
Draws a string. | |
DrawStringArgs
|
Draws a text string at the specified position. | |
GetWriter
|
Gets a demo text writer. | |
EndDrawingString
|
Finalizes font rendering. | |
| Other | ||
Finalize
|
Destroys a resource. | |
CONFIDENTIAL