28 #ifndef __TextureUnitState_H__
29 #define __TextureUnitState_H__
203 const String& getTextureName(
void)
const;
265 void setCubicTextureName(
const String& name,
bool forUVW =
false );
311 void setCubicTextureName(
const String*
const names,
bool forUVW =
false );
357 void setCubicTexture(
const TexturePtr*
const texPtrs,
bool forUVW =
false );
380 void setAnimatedTextureName(
const String& name,
unsigned int numFrames,
Real duration = 0 );
403 void setAnimatedTextureName(
const String*
const names,
unsigned int numFrames,
Real duration = 0 );
407 std::pair< size_t, size_t > getTextureDimensions(
unsigned int frame = 0 )
const;
416 void setCurrentFrame(
unsigned int frameNumber );
422 unsigned int getCurrentFrame(
void)
const;
429 const String& getFrameTextureName(
unsigned int frameNumber)
const;
440 void setFrameTextureName(
const String& name,
unsigned int frameNumber);
448 void addFrameTextureName(
const String& name);
457 void deleteFrameTextureName(
const size_t frameNumber);
462 unsigned int getNumFrames(
void)
const;
477 BT_TESSELATION_HULL = 3,
479 BT_TESSELATION_DOMAIN = 4,
492 CONTENT_COMPOSITOR = 2
504 void setBindingType(BindingType bt);
508 BindingType getBindingType(
void)
const;
515 void setContentType(ContentType ct);
517 ContentType getContentType(
void)
const;
525 bool isCubic(
void)
const;
531 bool is3D(
void)
const;
549 void setNumMipmaps(
int numMipmaps);
553 int getNumMipmaps(
void)
const;
557 void setIsAlpha(
bool isAlpha);
561 bool getIsAlpha(
void)
const;
569 void setHardwareGammaEnabled(
bool enabled);
571 bool isHardwareGammaEnabled()
const;
577 unsigned int getTextureCoordSet(
void)
const;
586 void setTextureCoordSet(
unsigned int set);
603 void setTextureTransform(
const Matrix4& xform);
612 const Matrix4& getTextureTransform(
void)
const;
628 void setTextureScroll(
Real u,
Real v);
634 void setTextureUScroll(
Real value);
636 Real getTextureUScroll(
void)
const;
642 void setTextureVScroll(
Real value);
644 Real getTextureVScroll(
void)
const;
650 void setTextureUScale(
Real value);
652 Real getTextureUScale(
void)
const;
658 void setTextureVScale(
Real value);
660 Real getTextureVScale(
void)
const;
675 void setTextureScale(
Real uScale,
Real vScale);
686 void setTextureRotate(
const Radian& angle);
688 const Radian& getTextureRotate(
void)
const;
695 const UVWAddressingMode& getTextureAddressingMode(
void)
const;
710 void setTextureAddressingMode( TextureAddressingMode tam);
718 void setTextureAddressingMode( TextureAddressingMode u,
719 TextureAddressingMode v, TextureAddressingMode w);
727 void setTextureAddressingMode(
const UVWAddressingMode& uvw);
736 void setTextureBorderColour(
const ColourValue& colour);
743 const ColourValue& getTextureBorderColour(
void)
const;
809 void setColourOperationEx(
817 Real manualBlend = 0.0);
906 Real manualBlend = 0.0);
919 void addEffect(TextureEffect& effect);
947 void setEnvironmentMap(
bool enable, EnvMapType envMapType = ENV_CURVED);
959 void setScrollAnimation(
Real uSpeed,
Real vSpeed);
969 void setRotateAnimation(
Real speed);
990 void setTransformAnimation(
const TextureTransformType ttype,
1014 void setProjectiveTexturing(
bool enabled,
const Frustum* projectionSettings = 0);
1018 void removeAllEffects(
void);
1025 void removeEffect(
const TextureEffectType type );
1032 bool isBlank(
void)
const;
1036 void setBlank(
void);
1047 const EffectMap& getEffects(
void)
const;
1049 Real getAnimationDuration(
void)
const;
1084 void setTextureCompareEnabled(
bool enabled);
1085 bool getTextureCompareEnabled()
const;
1097 void setTextureAnisotropy(
unsigned int maxAniso);
1099 unsigned int getTextureAnisotropy()
const;
1130 void setCompositorReference(
const String& compositorName,
const String& textureName,
size_t mrtIndex = 0);
1143 void _prepare(
void);
1145 void _unprepare(
void);
1151 bool hasViewRelativeTextureCoordinateGeneration(
void)
const;
1154 bool isLoaded(
void)
const;
1156 void _notifyNeedsRecompile(
void);
1163 void setName(
const String& name);
1171 void setTextureNameAlias(
const String& name);
1193 void _notifyParent(
Pass* parent);
1196 const TexturePtr& _getTexturePtr(
void)
const;
1198 const TexturePtr& _getTexturePtr(
size_t frame)
const;
1201 void _setTexturePtr(
const TexturePtr& texptr);
1203 void _setTexturePtr(
const TexturePtr& texptr,
size_t frame);
1205 size_t calculateSize(
void)
const;
1293 void recalcTextureMatrix(
void)
const;
1297 void createAnimController(
void);
1304 void ensurePrepared(
size_t frame)
const;
1306 void ensureLoaded(
size_t frame)
const;
1318 #endif // __TextureUnitState_H__