Skip to content
Snippets Groups Projects
Commit c5d057bc authored by Shon Ferguson's avatar Shon Ferguson
Browse files

Used Tazpn's automatic accessor function generator to create functions for as...

Used Tazpn's automatic accessor function generator to create functions for as many classes as possible.
parent be486dcb
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,12 @@ public:
virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const;
Ref<NiInterpolator> GetInterpolator() const;
void SetInterpolator( const Ref<NiInterpolator> & n );
/*!
* Link to interpolator.
*/
Ref<NiInterpolator > GetInterpolator() const;
void SetInterpolator( Ref<NiInterpolator > value );
protected:
NI_SINGLE_INTERPOLATOR_CONTROLLER_MEMBERS
STANDARD_INTERNAL_METHODS
......
......@@ -35,3 +35,19 @@ const Type & NiSpotLight::GetType() const {
return TYPE;
};
float NiSpotLight::GetCutoffAngle() const {
return cutoffAngle;
}
void NiSpotLight::SetCutoffAngle( float value ) {
cutoffAngle = value;
}
float NiSpotLight::GetExponent() const {
return exponent;
}
void NiSpotLight::SetExponent( float value ) {
exponent = value;
}
......@@ -33,6 +33,18 @@ public:
virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const;
/*!
* The opening angle of the spot.
*/
float GetCutoffAngle() const;
void SetCutoffAngle( float value );
/*!
* Describes the distribution of light. (see: glLight)
*/
float GetExponent() const;
void SetExponent( float value );
protected:
NI_SPOT_LIGHT_MEMBERS
STANDARD_INTERNAL_METHODS
......
......@@ -36,3 +36,83 @@ const Type & NiTextureEffect::GetType() const {
return TYPE;
};
Matrix33 NiTextureEffect::GetModelProjectionMatrix() const {
return modelProjectionMatrix;
}
void NiTextureEffect::SetModelProjectionMatrix( Matrix33 value ) {
modelProjectionMatrix = value;
}
Vector3 NiTextureEffect::GetModelProjectionTransform() const {
return modelProjectionTransform;
}
void NiTextureEffect::SetModelProjectionTransform( Vector3 value ) {
modelProjectionTransform = value;
}
uint NiTextureEffect::GetTextureFiltering() const {
return textureFiltering;
}
void NiTextureEffect::SetTextureFiltering( uint value ) {
textureFiltering = value;
}
uint NiTextureEffect::GetTextureClamping() const {
return textureClamping;
}
void NiTextureEffect::SetTextureClamping( uint value ) {
textureClamping = value;
}
uint NiTextureEffect::GetTextureType() const {
return textureType;
}
void NiTextureEffect::SetTextureType( uint value ) {
textureType = value;
}
uint NiTextureEffect::GetCoordinateGenerationType() const {
return coordinateGenerationType;
}
void NiTextureEffect::SetCoordinateGenerationType( uint value ) {
coordinateGenerationType = value;
}
Ref<NiSourceTexture > NiTextureEffect::GetSourceTexture() const {
return sourceTexture;
}
void NiTextureEffect::SetSourceTexture( Ref<NiSourceTexture > value ) {
sourceTexture = value;
}
byte NiTextureEffect::GetClippingPlane() const {
return clippingPlane;
}
void NiTextureEffect::SetClippingPlane( byte value ) {
clippingPlane = value;
}
ushort NiTextureEffect::GetPs2L() const {
return ps2L;
}
void NiTextureEffect::SetPs2L( ushort value ) {
ps2L = value;
}
ushort NiTextureEffect::GetPs2K() const {
return ps2K;
}
void NiTextureEffect::SetPs2K( ushort value ) {
ps2K = value;
}
......@@ -41,6 +41,71 @@ public:
virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const;
/*!
* Model projection matrix. Always identity?
*/
Matrix33 GetModelProjectionMatrix() const;
void SetModelProjectionMatrix( Matrix33 value );
/*!
* Model projection transform. Always (0,0,0)?
*/
Vector3 GetModelProjectionTransform() const;
void SetModelProjectionTransform( Vector3 value );
/*!
* 0: FILTER_NEAREST 1: FILTER_BILERP 2: FILTER_TRILERP (Usual value) 3:
* FILTER_NEAREST_MIPNEAREST 4: FILTER_NEAREST_MIPLERP 5:
* FILTER_BILERP_MIPNAREST
*/
uint GetTextureFiltering() const;
void SetTextureFiltering( uint value );
/*!
* 0: CLAMP_S_CLAMP (Common value) 1: CLAMP_S_WRAP 2: WRAP_S_CLAMP_T 3:
* WRAP_S_WRAP_T (Common value)
*/
uint GetTextureClamping() const;
void SetTextureClamping( uint value );
/*!
* 0: PROJECTED_LIGHT 1: PROJECTED_SHADOW 2: ENVIRONMENT_MAP (Usual
* value) 3: FOG_MAP
*/
uint GetTextureType() const;
void SetTextureType( uint value );
/*!
* 0: WORLD_PARALLEL 1: WORLD_PERSPECTIVE 2: SPHERE_MAP (Usual value) 3:
* SPECULAR_CUBE_MAP 4: DIFFUSE_CUBE_MAP
*/
uint GetCoordinateGenerationType() const;
void SetCoordinateGenerationType( uint value );
/*!
* Source texture index.
*/
Ref<NiSourceTexture > GetSourceTexture() const;
void SetSourceTexture( Ref<NiSourceTexture > value );
/*!
* 0: Disabled (Usual value) 1: Enabled
*/
byte GetClippingPlane() const;
void SetClippingPlane( byte value );
/*!
* 0?
*/
ushort GetPs2L() const;
void SetPs2L( ushort value );
/*!
* 0xFFB5?
*/
ushort GetPs2K() const;
void SetPs2K( ushort value );
protected:
NI_TEXTURE_EFFECT_MEMBERS
STANDARD_INTERNAL_METHODS
......
......@@ -36,3 +36,35 @@ const Type & NiTransformInterpolator::GetType() const {
return TYPE;
};
Vector3 NiTransformInterpolator::GetTranslation() const {
return translation;
}
void NiTransformInterpolator::SetTranslation( Vector3 value ) {
translation = value;
}
Quaternion NiTransformInterpolator::GetRotation() const {
return rotation;
}
void NiTransformInterpolator::SetRotation( Quaternion value ) {
rotation = value;
}
float NiTransformInterpolator::GetScale() const {
return scale;
}
void NiTransformInterpolator::SetScale( float value ) {
scale = value;
}
Ref<NiTransformData > NiTransformInterpolator::GetData() const {
return data;
}
void NiTransformInterpolator::SetData( Ref<NiTransformData > value ) {
data = value;
}
......@@ -38,6 +38,30 @@ public:
virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const;
/*!
* Translate.
*/
Vector3 GetTranslation() const;
void SetTranslation( Vector3 value );
/*!
* Rotation.
*/
Quaternion GetRotation() const;
void SetRotation( Quaternion value );
/*!
* Scale.
*/
float GetScale() const;
void SetScale( float value );
/*!
* Refers to NiTransformData.
*/
Ref<NiTransformData > GetData() const;
void SetData( Ref<NiTransformData > value );
protected:
NI_TRANSFORM_INTERPOLATOR_MEMBERS
STANDARD_INTERNAL_METHODS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment