Diligent::Texture2D_GL class final

2D texture implementation in OpenGL backend.

Base classes

class TextureBaseGL
Base implementation of a texture object in OpenGL backend.

Constructors, destructors, conversion operators

Texture2D_GL(IReferenceCounters* pRefCounters, FixedBlockMemoryAllocator& TexViewObjAllocator, class RenderDeviceGLImpl* pDeviceGL, const TextureDesc& TexDesc, bool bIsDeviceInternal = false)
This constructor is used to create a dummy texture object for the default framebuffer.

Public functions

void UpdateData(class GLContextState& CtxState, Uint32 MipLevel, Uint32 Slice, const Box& DstBox, const TextureSubResData& SubresData) final
Implementation of TextureBaseGL::UpdateData() for 2D texture.
void AttachToFramebuffer(const struct TextureViewDesc& ViewDesc, GLenum AttachmentPoint) final
Implementation of TextureBaseGL::AttachToFramebuffer() for 2D texture.