nw::demo::GraphicsDrawing Class

Syntax

class GraphicsDrawing

Description

Class for drawing characters and primitives for demos.

Member Functions

Constructors and Destructors
SetScreenSize Sets the screen size.
GraphicsDrawing Constructor.
~GraphicsDrawing Destructor.
Shape Drawing
InitializeShader Initializes a shader.
Setup Performs set up for shader and drawing.
SetLineWidth Sets the line size.
BeginDrawingShape demo::GraphicsDrawing class function for starting rendering.
DrawLine Draws a line. The CPU creates a vertex without using a line shader.
DrawRectangle Draws a rectangle. The CPU creates a vertex 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.
Other
Finalize Destroys a resource.
FlushDrawing Flushes demo::GraphicsDrawing class drawings.
InitializeShader Initializes a shader.
InitializeFont Initializes a font.

CONFIDENTIAL