C3DMesh::EnableSphereMapping

Top  Previous  Next

Syntax:

 

EnableSphereMapping(int  texturelayer)

 

Purpose:

Enables sphere mapping for the mesh using the specified texture.

 

Parameters:

texturelayer - The zero based texture to use.

 

Returned value(s):

None.

 

Application:

' Load tiger.x mesh and enable sphere mapping on texture layer 0
tiger.LoadX(GETSTARTPATH + "tiger.x")
tiger.EnableSphereMapping(0)
tiger.Position(0,0,0)

 

Class Hierarchy

C3DObject

-------C3DMesh

 

Additional Info:

To turn off sphere mapping use -1 as the texturelayer parameter.