C3DMesh::EnableLighting

Top  Previous  Next

Syntax:

 

EnableLighting(int  bEnable)

 

Purpose:

Enables or disables lighting on a per mesh basis.

 

Parameters:

bEnable - TRUE to enable lighting for the mesh.

 

Returned value(s):

None

 

Application:

house.EnableLighting(TRUE)

 

Class Hierarchy

C3DObject

-------C3DMesh

 

Additional Info:

If lighting is disabled for an object then the color of a vertex is defined by the diffuse color, material or texture alone.

 

See Also:

UseVertexColor