Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::Ubo Class Reference
Inheritance diagram for brenta::Ubo:
brenta::Buffer

Public Member Functions

void init (Shader &shader, std::string uniform_name, unsigned int binding_point, size_t size)
 
- Public Member Functions inherited from brenta::Buffer
 Buffer (Target target)
 
constexpr Buffer (const Buffer &)=delete
 
constexpr Bufferoperator= (const Buffer &)=delete
 
constexpr Buffer (Buffer &&other) noexcept
 
constexpr Bufferoperator= (Buffer &&other) noexcept
 
void init (Target target)
 
void destroy ()
 
virtual void bind () const
 
virtual void unbind () const
 
Buffer::Id get_id () const
 
Target & get_target ()
 
void set_id (Buffer::Id id)
 
void set_target (Target target)
 
void copy_data (const void *data, GLsizeiptr size, DataUsage usage)
 

Additional Inherited Members

- Public Types inherited from brenta::Buffer
enum  Target {
  Array = GL_ARRAY_BUFFER , ElementArray = GL_ELEMENT_ARRAY_BUFFER , Uniform = GL_UNIFORM_BUFFER , Texture = GL_TEXTURE_BUFFER ,
  TransformFeedback = GL_TRANSFORM_FEEDBACK_BUFFER , CopyRead = GL_COPY_READ_BUFFER , PixelUnpack = GL_PIXEL_UNPACK_BUFFER , ShaderStorage = GL_SHADER_STORAGE_BUFFER
}
 
enum  DataUsage {
  StreamDraw = GL_STREAM_DRAW , StreamRead = GL_STREAM_READ , StreamCopy = GL_STREAM_COPY , StaticDraw = GL_STATIC_DRAW ,
  StaticRead = GL_STATIC_READ , StaticCopy = GL_STATIC_COPY , DynamicDraw = GL_DYNAMIC_DRAW , DynamicRead = GL_DYNAMIC_READ ,
  DynamicCopy = GL_DYNAMIC_COPY
}
 
using Id = unsigned int
 
- Data Fields inherited from brenta::Buffer
int memory = 0
 
- Static Public Attributes inherited from brenta::Buffer
static int tot_memory = 0
 
- Protected Attributes inherited from brenta::Buffer
Buffer::Id id = 0
 
Target target
 

Detailed Description

Definition at line 23 of file ubo.hpp.

Constructor & Destructor Documentation

◆ Ubo()

brenta::Ubo::Ubo ( )
inline

Definition at line 27 of file ubo.hpp.

Member Function Documentation

◆ init()

void Ubo::init ( Shader shader,
std::string  uniform_name,
unsigned int  binding_point,
size_t  size 
)

Definition at line 11 of file ubo.cpp.


The documentation for this class was generated from the following files: