8#ifndef META_OCEAN_RENDERING_GLES_TEXTURE_2D_H
9#define META_OCEAN_RENDERING_GLES_TEXTURE_2D_H
23namespace GLESceneGraph
80 inline GLuint primaryTextureId()
const;
86 inline GLuint secondaryTextureId()
const;
139 static bool determineAlignment(
const unsigned int planeStrideBytes,
unsigned int& rowLength,
unsigned int& byteAlignment);
214 GLuint primaryTextureId_ = 0u;
217 GLuint secondaryTextureId_ = 0u;
220 std::string textureName_ = std::string(
"primaryTexture,secondaryTexture");
This class implements Ocean's image class.
Definition Frame.h:1879
Definition of a frame type composed by the frame dimension, pixel format and pixel origin.
Definition Frame.h:30
This class is the base class for all dynamic scene graph objects.
Definition DynamicObject.h:40
This class implements a class factory for all GLESceneGraph objects.
Definition GLESFactory.h:30
This class implements a container for an OpenGL ES shader program.
Definition GLESShaderProgram.h:53
This class wraps a GLESceneGraph texture object.
Definition GLESTexture2D.h:34
unsigned int bindTexture(GLESShaderProgram &shaderProgram, const unsigned int id) override
Binds this texture.
static bool needsSecondaryTextureObjects(const FrameType &frameType)
Returns whether a second texture is necessary for a given frame type.
static bool determineAlignment(const unsigned int planeStrideBytes, unsigned int &rowLength, unsigned int &byteAlignment)
Determines the alignment for a plane.
std::string textureName() const override
Returns the name of the texture e.g., in a shader.
GLESTexture2D()
Creates a new GLESceneGraph texture 2D object.
void createMipmap() override
Updates the mipmap for this texture.
static bool determineSecondaryTextureProperties(const FrameType &frameType, unsigned int &width, unsigned int &height, GLenum &format, GLenum &type)
Determines the properties of the secondary texture for a given frame type.
GLuint primaryTextureId_
The OpenGL ES primary texture id.
Definition GLESTexture2D.h:214
bool setWrapTypeT(const WrapType type) override
Sets the texture wrap type in t direction.
static bool determinePrimaryTextureProperties(const FrameType &frameType, unsigned int &width, unsigned int &height, GLenum &format, GLenum &type)
Determines the properties of the primary texture for a given frame type.
static bool primaryTextureName(const std::string &names, std::string &name)
Returns the name of the primary texture.
bool definePrimaryTextureObject(const FrameType &frameType)
Creates a primary GLESceneGraph texture object.
Frame conversionFrame_
Optional temp conversion frame.
Definition GLESTexture2D.h:223
bool setTextureName(const std::string &name) override
Sets the name of the texture e.g., in a shader.
WrapType wrapTypeS() const override
Returns the texture wrap type in s direction.
GLuint secondaryTextureId_
The OpenGL ES secondary texture id.
Definition GLESTexture2D.h:217
bool updateTexture(const Frame &frame)
Updates the texture based on a given frame.
bool defineSecondaryTextureObject(const FrameType &frameType)
Creates a secondary GLESceneGraph texture object.
WrapType wrapTypeT() const override
Returns the texture wrap type in t direction.
static bool determineInternalFrameType(const FrameType &frameType, FrameType &internalFrameType)
Returns the frame type of the internal frame for which a GL texture format exists.
GLuint secondaryTextureId() const
Returns the texture id of the secondary texture.
Definition GLESTexture2D.h:231
bool setWrapTypeS(const WrapType type) override
Sets the texture wrap type in s direction.
GLuint primaryTextureId() const
Returns the texture id of the primary texture.
Definition GLESTexture2D.h:226
bool defineTextureObject(const FrameType &frameType)
Creates a new GLESceneGraph texture object.
~GLESTexture2D() override
Destructs a GLESceneGraph texture 2D object.
static bool secondaryTextureName(const std::string &names, std::string &name)
Returns the name of the secondary texture.
This class is the base class for all GLESceneGraph texture objects.
Definition GLESTexture.h:37
This class is the base class for all 2D textures.
Definition Texture2D.h:39
WrapType
Definition of different texture wrapping types.
Definition rendering/Texture.h:96
The namespace covering the entire Ocean framework.
Definition Accessor.h:15