C3DMesh::CreateRectangle

Top  Previous  Next

Syntax:

 

CreateRectangle(C3DScreen pScreen), int

 

Purpose:

Creates a rectangular mesh comprised of two triangles.

 

Parameters:

pScreen - A C3DScreen object

 

Returned value(s):

TRUE if the mesh could be created, FALSE otherwise.

 

Application:

Mesh2.CreateRectangle(s)

 

Class Hierarchy

C3DObject

-------C3DMesh

 

Additional Info:

The mesh returned has four vertices with texture coordinates of {0,0} {0,1} {1,0} {1,1} and can be used to create billboards, walls, or any other single sided object that needs a rectangular mesh.  The dimensions of the rectangle are 1x1 and can be scaled to any size using the C3DObject::Scale method.

 

See Also:

CreateBox