8#ifndef META_OCEAN_RENDERING_GLES_FRAME_TEXTURE_2D_H
9#define META_OCEAN_RENDERING_GLES_FRAME_TEXTURE_2D_H
This class implements Ocean's image class.
Definition Frame.h:1969
Definition of a frame type composed by the frame dimension, pixel format and pixel origin.
Definition Frame.h:30
This class implements a container for a compressed texture.
Definition FrameTexture2D.h:71
CompressedFormat
Definition of individual compressed texture formats.
Definition FrameTexture2D.h:45
FrameTexture2D()
Creates a new 2D frame texture object.
friend class GLESFactory
Definition GLESFrameTexture2D.h:33
void onDynamicUpdate(const ViewRef &view, const Timestamp timestamp) override
Update function called by the framebuffer.
Frame frame_
The texture's frame, if any.
Definition GLESFrameTexture2D.h:113
bool updateTexture(const CompressedFrame &compressedFrame)
Updates the texture based on a given compressed frame.
bool setTexture(CompressedFrame &&compressedFrame) override
Sets or updates the texture with a given buffer.
bool isValid() const override
Returns whether the texture internally holds valid data.
~GLESFrameTexture2D() override
Destructs a GLESceneGraph texture 2D object.
static bool compressedImageSize(const CompressedFormat compressedFormat, const unsigned int width, const unsigned int height, unsigned int &size)
Returns the image size for a compressed texture.
bool hasTransparentPixel() const override
Returns whether this texture contains at least one transparent pixel.
bool setTexture(Frame &&frame) override
Sets or updates the texture with a given frame.
static bool determineCompressedFormat(const CompressedFormat compressedFormat, GLenum &internalFormat)
Determines the OpenGL format for a given compressed texture format.
CompressedFrame compressedFrame_
The texture's compressed frame, if any.
Definition GLESFrameTexture2D.h:116
FrameType sourceFrameType() const override
Returns the frame type of the image which was provided for this texture.
bool updateNeeded_
True, if the texture needs to be updated.
Definition GLESFrameTexture2D.h:119
GLESFrameTexture2D()
Creates a new GLESceneGraph texture 2D object.
GLESTexture2D()
Creates a new GLESceneGraph texture 2D object.
This class implements a timestamp.
Definition Timestamp.h:64
SmartObjectRef< View > ViewRef
Definition of a smart object reference holding a view node.
Definition View.h:39
Namespace of the Rendering GLESceneGraph library.
Definition rendering/glescenegraph/android/Android.h:20
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15