TextureData

TextureData interface.

Overview

Typical use cases:

  • Defining OpenGL-specific texture data implementations

Header

<RaeptorCogs/GAPI/GL/Ressources/TextureData.hpp>

Metadata

Author

Estorc

Version

v1.0

Copyright

Copyright (c) 2025 Estorc MIT License.

Classes

Classes

Class

Description

RaeptorCogs::GAPI::GL::TextureData

No description.

class TextureData : public RaeptorCogs::GAPI::Common::TextureData

Public Functions

virtual void initialize() override

Initialize the texture data.

Initializes the OpenGL texture object.

Note

Overrides the pure virtual method from the base class.

virtual void bind() override

Bind the texture for use.

Binds the OpenGL texture object.

Note

Overrides the pure virtual method from the base class.

virtual void unbind() const override

Unbind the texture.

Unbinds the OpenGL texture object.

Note

Overrides the pure virtual method from the base class.

virtual void build(int width, int height, void *data, GLenum minFilter = GL_LINEAR_MIPMAP_NEAREST, GLenum magFilter = GL_LINEAR) override

Functions

Functions

Function

Description

RaeptorCogs::GAPI::GL::REGISTER(Common::TextureData, TextureData)

Register TextureData with the FactoryRegistry.

RaeptorCogs::GAPI::GL::REGISTER(Common::TextureData, TextureData)

Register TextureData with the FactoryRegistry.