8#ifndef META_OCEAN_RENDERING_GLES_TEXTURE_H
9#define META_OCEAN_RENDERING_GLES_TEXTURE_H
27namespace GLESceneGraph
This class is the base class for all GLESceneGraph objects.
Definition GLESObject.h:57
This class implements a container for an OpenGL ES shader program.
Definition GLESShaderProgram.h:53
This class is the base class for all GLESceneGraph texture objects.
Definition GLESTexture.h:37
static GLenum translateWrapType(const WrapType wrapType)
Translates a wrap type to the corresponding OpenGL wrap type.
void setMinificationFilterMode(const MinFilterMode mode) override
Sets the minification filter mode for this texture.
MinFilterMode minificationFilterMode_
Texture minification filter mode.
Definition GLESTexture.h:155
HomogenousMatrix4 transformation_
Homogenous texture transformation matrix.
Definition GLESTexture.h:149
bool usingMipmaps() const override
Returns whether mipmaps are used.
EnvironmentMode environmentMode_
Texture environment mode.
Definition GLESTexture.h:152
static GLenum translateMagnificationFilterMode(const MagFilterMode magnificationFilterMode)
Translates a maginification filter mode to the corresponding OpenGL filter mode.
MagFilterMode magnificationFilterMode() const override
Returns the magnification filter mode for this texture.
bool useMipmap_
True, to create a mipmap for the texture.
Definition GLESTexture.h:161
GLESTexture()
Creates a new GLESceneGraph texture object.
void setUseMipmaps(const bool flag) override
Specifies whether mipmaps will be used.
static GLenum translateMinificationFilterMode(const MinFilterMode minificationFilterMode)
Translates a minification filter mode to the corresponding OpenGL filter mode.
void setTransformation(const HomogenousMatrix4 &transformation) override
Sets the texture transformation matrix.
MagFilterMode magnificationFilterMode_
Texture magnification filter mode.
Definition GLESTexture.h:158
void setEnvironmentMode(const EnvironmentMode mode) override
Sets the environment mode for this texture.
~GLESTexture() override
Destructs a GLESceneGraph texture object.
virtual void createMipmap()=0
Creates or updates the mipmap for this texture.
MinFilterMode minificationFilterMode() const override
Returns the minification filter mode for this texture.
EnvironmentMode environmentMode() const override
Returns the environment mode for this texture.
virtual unsigned int bindTexture(GLESShaderProgram &shaderProgram, const unsigned int id)=0
Binds this texture.
void setMagnificationFilterMode(const MagFilterMode mode) override
Sets the magnification filter mode for this texture.
HomogenousMatrix4 transformation() const override
Returns the texture transformation matrix.
This class is the base class for all textures.
Definition rendering/Texture.h:38
MagFilterMode
Definition of possible magnification filter modes.
Definition rendering/Texture.h:83
WrapType
Definition of different texture wrapping types.
Definition rendering/Texture.h:96
EnvironmentMode
Definition of possible texture environment modes.
Definition rendering/Texture.h:45
MinFilterMode
Definition of possible minification filter modes.
Definition rendering/Texture.h:61
The namespace covering the entire Ocean framework.
Definition Accessor.h:15