Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iLODControl Struct Reference

The iLODControl interface represents an object that has controllable LOD features. More...

#include <lod.h>

Inheritance diagram for iLODControl:

iBase List of all members.

Public Methods

virtual uint32 GetLODFeatures () const=0
 Get a mask with the currently enabled features for this mesh object. More...

virtual void SetLODFeatures (uint32 mask, uint32 value)=0
 Set the features you want this mesh object to support. More...

virtual void SetLOD (float lod)=0
 Set the LOD level of this mesh object (for polygon count). More...

virtual float GetLOD () const=0
 Get the current LOD settng for this mesh object (between 0 and 1).

virtual int GetLODPolygonCount (float lod) const=0
 Get a rough estimate of the number of polygons for a given LOD value (between 0 and 1, similar to the value used by SetLOD()). More...

virtual uint32 GetAvailableLODFeatures () const=0
 Get a mask with the available LOD features for this mesh object. More...

virtual uint32 GetAvailableDistanceFeatures () const=0
 Get a mask with the available LOD distance reduction features for this mesh object. More...

virtual uint32 GetDistanceReduction () const=0
 Get a mask with the currently enabled distance reduction features for this mesh object. More...

virtual void SetDistanceReduction (uint32 mask, uint32 value)=0
 Set the features you want supported in distance reduction. More...

virtual void SetLODPriority (uint16 group)=0
 Set the priority level for this object can be from 0 to 255 0 being the highest priority, 255 being the lowest. More...

virtual uint16 GetLODPriority () const=0
 Get the features priority level for this object.

virtual void SetMinLODThreshold (float level, bool turnOff)=0

Detailed Description

The iLODControl interface represents an object that has controllable LOD features.

In the future the LOD manager will be able to work with this.


Member Function Documentation

uint32 iLODControl::GetAvailableDistanceFeatures ( ) const [pure virtual]
 

Get a mask with the available LOD distance reduction features for this mesh object.

The values in this mask are combinations of the CS_LOD_* flags.

uint32 iLODControl::GetAvailableLODFeatures ( ) const [pure virtual]
 

Get a mask with the available LOD features for this mesh object.

The values in this mask are combinations of the CS_LOD_* flags.

uint32 iLODControl::GetDistanceReduction ( ) const [pure virtual]
 

Get a mask with the currently enabled distance reduction features for this mesh object.

Some features may be disabled by the engine. The values in this mask are combinations of the CS_LOD_* flags.

uint32 iLODControl::GetLODFeatures ( ) const [pure virtual]
 

Get a mask with the currently enabled features for this mesh object.

For LOD purposes some features may be disabled by the engine. The values in this mask are combinations of the CS_LOD_* flags.

int iLODControl::GetLODPolygonCount ( float lod ) const [pure virtual]
 

Get a rough estimate of the number of polygons for a given LOD value (between 0 and 1, similar to the value used by SetLOD()).

Note that a mesh object that doesn't support LOD should always return the same number of polygons.

void iLODControl::SetDistanceReduction ( uint32 mask,
uint32 value ) [pure virtual]
 

Set the features you want supported in distance reduction.

The values in this mask are combinations of the CS_LOD_* flags.

void iLODControl::SetLOD ( float lod ) [pure virtual]
 

Set the LOD level of this mesh object (for polygon count).

A value of 1 (default) means that the mesh object will use full detail. A value of 0 means that the mesh object will use lowest possible detail while still being useful (i.e. a value of 0 should not result in no triangles to render).

void iLODControl::SetLODFeatures ( uint32 mask,
uint32 value ) [pure virtual]
 

Set the features you want this mesh object to support.

Features can be disabled by the engine for LOD purposes. The values in this mask are combinations of the CS_LOD_* flags. The following values are possible in the mask (CS_LOD_ALL represents all):

  • CS_LOD_TRIANGLE_REDUCTION
  • CS_LOD_LIGHT_QUALITY
  • CS_LOD_LIGHT_QUANTITY
  • CS_LOD_FRAME_ANIMATION
  • CS_LOD_SKELETAL_ANIMATION
  • CS_LOD_TEXTURE_DETAIL
  • CS_LOD_TEXTURE_SIZE
  • CS_LOD_DISTANCE_REDUCTION

void iLODControl::SetLODPriority ( uint16 group ) [pure virtual]
 

Set the priority level for this object can be from 0 to 255 0 being the highest priority, 255 being the lowest.

It is 0 by default


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000