GSDP:GAM100/CProcessing/CP Graphics BeginShape()

From Inside
Jump to: navigation, search

CP_Graphics_BeginShape()

Description

Using CP_Graphics_BeginShape(), CP_Graphics_AddVertex(), and CP_Graphics_EndShape(), a shape can be defined with any number of vertices. After begin shape is called, use CP_Graphics_AddVertex() to specify the specific vertices of the shape. A shape will not be drawn until CP_Graphics_EndShape() is called.

Parameters

CP_Graphics_BeginShape()

  • Void

Example

void update() 
{
    // Start drawing a shape
    CP_Graphics_BeginShape();

    // Specify three vertices
    CP_Graphics_AddVertex(100.0f, 100.0f);
    CP_Graphics_AddVertex(200.0f, 100.0f);
    CP_Graphics_AddVertex(200.0f, 200.0f);

   // signal the end of the shape and draw the shape
    CP_Graphics_EndShape();
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>