Sirikata
Public Types | Public Member Functions | Public Attributes
Sirikata::LightInfo Struct Reference

#include <LightInfo.hpp>

Collaboration diagram for Sirikata::LightInfo:

List of all members.

Public Types

enum  LightTypes { POINT, SPOTLIGHT, DIRECTIONAL, NUM_TYPES }
enum  Fields {
  NONE = 0, DIFFUSE_COLOR = 1, SPECULAR_COLOR = 2, POWER = 8,
  AMBIENT_COLOR = 16, SHADOW_COLOR = 32, LIGHT_RANGE = 64, FALLOFF = 128,
  CONE = 256, TYPE = 512, CAST_SHADOW = 1024, ALL = 2047
}

Public Member Functions

 LightInfo ()
LightInfosetLightDiffuseColor (const Color &c)
LightInfosetLightSpecularColor (const Color &c)
LightInfosetLightPower (float32 c)
LightInfosetLightAmbientColor (const Color &c)
 ogre only looks at the absolute value of this
LightInfosetLightShadowColor (const Color &c)
 ogre only looks at the absolute value of this
LightInfosetLightRange (float64 maxRange)
LightInfosetLightFalloff (float32 constant, float32 linear, float32 quadratic)
LightInfosetLightSpotlightCone (float32 innerRadians, float32 outerRadians, float32 coneFalloff)
LightInfosetLightType (LightTypes type)
LightInfosetCastsShadow (bool shouldCastShadow)
LightInfooperator= (const LightInfo &other)

Public Attributes

int32 mWhichFields
Color mDiffuseColor
Color mSpecularColor
float32 mPower
Color mAmbientColor
Color mShadowColor
float64 mLightRange
float32 mConstantFalloff
float32 mLinearFalloff
float32 mQuadraticFalloff
float32 mConeInnerRadians
float32 mConeOuterRadians
float32 mConeFalloff
LightTypes mType
bool mCastsShadow

Member Enumeration Documentation

Enumerator:
NONE 
DIFFUSE_COLOR 
SPECULAR_COLOR 
POWER 
AMBIENT_COLOR 
SHADOW_COLOR 
LIGHT_RANGE 
FALLOFF 
CONE 
TYPE 
CAST_SHADOW 
ALL 
Enumerator:
POINT 
SPOTLIGHT 
DIRECTIONAL 
NUM_TYPES 

Constructor & Destructor Documentation

Sirikata::LightInfo::LightInfo ( ) [inline]

Member Function Documentation

LightInfo& Sirikata::LightInfo::operator= ( const LightInfo other) [inline]
LightInfo& Sirikata::LightInfo::setCastsShadow ( bool  shouldCastShadow) [inline]
LightInfo& Sirikata::LightInfo::setLightAmbientColor ( const Color c) [inline]

ogre only looks at the absolute value of this

Referenced by Sirikata::Models::ColladaDocumentImporter::writeLight().

LightInfo& Sirikata::LightInfo::setLightDiffuseColor ( const Color c) [inline]
LightInfo& Sirikata::LightInfo::setLightFalloff ( float32  constant,
float32  linear,
float32  quadratic 
) [inline]
LightInfo& Sirikata::LightInfo::setLightPower ( float32  c) [inline]
LightInfo& Sirikata::LightInfo::setLightRange ( float64  maxRange) [inline]
LightInfo& Sirikata::LightInfo::setLightShadowColor ( const Color c) [inline]

ogre only looks at the absolute value of this

LightInfo& Sirikata::LightInfo::setLightSpecularColor ( const Color c) [inline]
LightInfo& Sirikata::LightInfo::setLightSpotlightCone ( float32  innerRadians,
float32  outerRadians,
float32  coneFalloff 
) [inline]
LightInfo& Sirikata::LightInfo::setLightType ( LightTypes  type) [inline]

Member Data Documentation

Referenced by operator=().


The documentation for this struct was generated from the following file: