Buffer

Buffer interface.

Overview

Typical use cases:

  • Defining a common interface for different buffer types

Header

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

Metadata

Author

Estorc

Version

v1.0

Copyright

Copyright (c) 2025 Estorc MIT License.

Types

Type Definitions

Type

Description

RaeptorCogs::GAPI::GL::EBO

No description.

RaeptorCogs::GAPI::GL::FBO

No description.

RaeptorCogs::GAPI::GL::RBO

No description.

RaeptorCogs::GAPI::GL::SSBO

No description.

RaeptorCogs::GAPI::GL::VBO

No description.

using RaeptorCogs::GAPI::GL::EBO = Elementbuffer

using RaeptorCogs::GAPI::GL::FBO = Framebuffer

using RaeptorCogs::GAPI::GL::RBO = Renderbuffer

using RaeptorCogs::GAPI::GL::SSBO = ShaderStorageBuffer

using RaeptorCogs::GAPI::GL::VBO = Vertexbuffer

Classes

Classes

Class

Description

RaeptorCogs::GAPI::GL::Elementbuffer

No description.

RaeptorCogs::GAPI::GL::Framebuffer

No description.

RaeptorCogs::GAPI::GL::Renderbuffer

No description.

RaeptorCogs::GAPI::GL::ShaderStorageBuffer

No description.

RaeptorCogs::GAPI::GL::Vertexbuffer

No description.

class Elementbuffer : public RaeptorCogs::GAPI::Common::Elementbuffer

Public Functions

virtual void initialize() override

Initialize the element buffer.

Initializes the OpenGL element buffer object.

Note

Overrides the pure virtual method from the base class.

virtual void bind() override

Bind the element buffer for use.

Binds the OpenGL element buffer object.

Note

Overrides the pure virtual method from the base class.

virtual void unbind() const override

Unbind the element buffer.

Unbinds the OpenGL element buffer object.

Note

Overrides the pure virtual method from the base class.

class Framebuffer : public RaeptorCogs::GAPI::Common::Framebuffer

Public Functions

virtual void initialize() override

Initialize the framebuffer.

Initializes the OpenGL framebuffer object.

Note

Overrides the pure virtual method from the base class.

virtual void bind() override

Bind the framebuffer for use.

Binds the OpenGL framebuffer object.

Note

Overrides the pure virtual method from the base class.

virtual void unbind() const override

Unbind the framebuffer.

Unbinds the OpenGL framebuffer object.

Note

Overrides the pure virtual method from the base class.

class Renderbuffer : public RaeptorCogs::GAPI::Common::Renderbuffer

Public Functions

virtual void initialize() override

Initialize the renderbuffer.

Initializes the OpenGL renderbuffer object.

Note

Overrides the pure virtual method from the base class.

virtual void bind() override

Bind the renderbuffer for use.

Binds the OpenGL renderbuffer object.

Note

Overrides the pure virtual method from the base class.

virtual void unbind() const override

Unbind the renderbuffer.

Unbinds the OpenGL renderbuffer object.

Note

Overrides the pure virtual method from the base class.

class ShaderStorageBuffer : public RaeptorCogs::GAPI::Common::ShaderStorageBuffer

Public Functions

virtual void initialize() override

Initialize the shader storage buffer.

Initializes the OpenGL shader storage buffer object.

Note

Overrides the pure virtual method from the base class.

virtual void bind() override

Bind the shader storage buffer for use.

Binds the OpenGL shader storage buffer object.

Note

Overrides the pure virtual method from the base class.

virtual void unbind() const override

Unbind the shader storage buffer.

Unbinds the OpenGL shader storage buffer object.

Note

Overrides the pure virtual method from the base class.

class Vertexbuffer : public RaeptorCogs::GAPI::Common::Vertexbuffer

Public Functions

virtual void initialize() override

Initialize the vertex buffer.

Initializes the OpenGL vertex buffer object.

Note

Overrides the pure virtual method from the base class.

virtual void bind() override

Bind the vertex buffer for use.

Binds the OpenGL vertex buffer object.

Note

Overrides the pure virtual method from the base class.

virtual void unbind() const override

Unbind the vertex buffer.

Unbinds the OpenGL vertex buffer object.

Note

Overrides the pure virtual method from the base class.

Functions

Functions

Function

Description

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

Register Elementbuffer with the FactoryRegistry.

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

Register Framebuffer with the FactoryRegistry.

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

Register Renderbuffer with the FactoryRegistry.

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

Register ShaderStorageBuffer with the FactoryRegistry.

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

Register Vertexbuffer with the FactoryRegistry.

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

Register Elementbuffer with the FactoryRegistry.

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

Register Framebuffer with the FactoryRegistry.

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

Register Renderbuffer with the FactoryRegistry.

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

Register ShaderStorageBuffer with the FactoryRegistry.

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

Register Vertexbuffer with the FactoryRegistry.