DrawFlatShadedShape

From Solid Graphics Wiki

Jump to: navigation, search
DrawFlatShadedShape
Namespace: SKL3D
Member of: (this function is not member of any class)
Include: Skl3DDraw.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

The DrawFlatShadedShape function draws a shape using flat shading. The function uses OpenGL functions for drawing the shape, so the shape is drawn into active/current OpenGL rendering context window.

void DrawFlatShadedShape
         (
         const Shape & shape
         );
void DrawFlatShadedShape
         (
         const Shape & shape,
         const VectorList & normals
         );


Parameters

shape The shape to render.
normals Shape triangles normal vectors. The vectors can be calculated using the Shape::CalculateNormals method. Number of normal vectors in the list must be the same as number of triangles in the shape. If no normals are provided then the function draws all the shape triangles using current OpenGL context's normal vector.

See Also


   


SolidKit Library Documentation

Personal tools