GSDP:GAM100/CProcessing/endShape()

From Inside
Jump to: navigation, search

endShape()

Description

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

Parameters

endShape()

  • Void

Example

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

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

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

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>