8#ifndef META_OCEAN_RENDERING_TEXTURE_H
9#define META_OCEAN_RENDERING_TEXTURE_H
75 MIN_MODE_LINEAR_MIPMAP_LINEAR
This class is the base class for all rendering objects.
Definition Object.h:54
ObjectType
Definition of different object type.
Definition Object.h:63
This class implements a smart rendering object reference.
Definition rendering/ObjectRef.h:34
This class is the base class for all textures.
Definition rendering/Texture.h:38
virtual std::string textureName() const =0
Returns the name of the texture e.g., in a shader.
~Texture() override
Destructs a texture object.
MagFilterMode
Definition of possible magnification filter modes.
Definition rendering/Texture.h:83
@ MAG_MODE_LINEAR
Linear interpolation between neighboring texel.
Definition rendering/Texture.h:87
@ MAG_MODE_INVALID
Invalid magnification filter mode.
Definition rendering/Texture.h:85
virtual EnvironmentMode environmentMode() const
Returns the environment mode for this texture.
WrapType
Definition of different texture wrapping types.
Definition rendering/Texture.h:96
@ WRAP_INVALID
Invalid wrap mode.
Definition rendering/Texture.h:98
@ WRAP_CLAMP
The texture will be clamped at the border.
Definition rendering/Texture.h:100
virtual void setTransformation(const HomogenousMatrix4 &transformation)
Sets the texture transformation matrix.
virtual bool usingMipmaps() const
Returns whether mipmaps are used.
virtual bool setTextureName(const std::string &name)=0
Sets the name of the texture e.g., in a shader.
EnvironmentMode
Definition of possible texture environment modes.
Definition rendering/Texture.h:45
@ MODE_REPLACE
Definition rendering/Texture.h:52
@ MODE_ADD
Definition rendering/Texture.h:48
@ MODE_MODULATE
Definition rendering/Texture.h:51
@ MODE_ADD_SIGNED
Definition rendering/Texture.h:49
@ MODE_BLEND
Definition rendering/Texture.h:50
@ MODE_INVALID
Invalid texture environment mode.
Definition rendering/Texture.h:47
MinFilterMode
Definition of possible minification filter modes.
Definition rendering/Texture.h:61
@ MIN_MODE_LINEAR
Linear interpolation between neighboring texel only in one texture layer.
Definition rendering/Texture.h:65
@ MIN_MODE_NEAREST
Chooses the nearest pixel only in one texture layer.
Definition rendering/Texture.h:67
@ MIN_MODE_LINEAR_MIPMAP_NEAREST
Linear interpolation between neighboring texel in the nearest mipmap texture layer.
Definition rendering/Texture.h:71
@ MIN_MODE_INVALID
Invalid minification filter mode.
Definition rendering/Texture.h:63
@ MIN_MODE_NEAREST_MIPMAP_LINEAR
Chooses the nearest pixel and interpolates between neighboring mipmap texture layers.
Definition rendering/Texture.h:73
@ MIN_MODE_NEAREST_MIPMAP_NEAREST
Chooses the nearest pixel in the nearest mipmap texture layer.
Definition rendering/Texture.h:69
virtual void setEnvironmentMode(const EnvironmentMode mode)
Sets the environment mode for this texture.
virtual void setMinificationFilterMode(const MinFilterMode mode)
Sets the minification filter mode for this texture.
ObjectType type() const override
Returns the type of this object.
virtual MinFilterMode minificationFilterMode() const
Returns the minification filter mode for this texture.
virtual MagFilterMode magnificationFilterMode() const
Returns the magnification filter mode for this texture.
virtual bool adjustedToPowerOfTwo() const
Returns whether the internal texture size has been extended to power-of-two dimensions to hand the re...
virtual HomogenousMatrix4 transformation() const
Returns the texture transformation matrix.
virtual bool isValid() const
Returns whether the texture internally holds valid data.
virtual void setUseMipmaps(const bool flag)
Specifies whether mipmaps will be used.
Texture()
Creates a new texture object.
virtual void setMagnificationFilterMode(const MagFilterMode mode)
Sets the magnification filter mode for this texture.
SmartObjectRef< Texture > TextureRef
Definition of a smart object reference holding a texture.
Definition rendering/Texture.h:31
The namespace covering the entire Ocean framework.
Definition Accessor.h:15