PeriDyno 0.8.2
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
gl::Buffer Class Reference

#include <Buffer.h>

Inheritance diagram for gl::Buffer:
Inheritance graph
[legend]
Collaboration diagram for gl::Buffer:
Collaboration graph
[legend]

Public Member Functions

virtual void create (int target, int usage)
 
virtual void release () override
 
void bind ()
 
void unbind ()
 
virtual void allocate (int size)
 
virtual void load (void *data, int size, int offset=0)
 
void bindBufferBase (int idx)
 

Protected Attributes

int target = -1
 
int usage = -1
 
int size = -1
 

Private Member Functions

virtual void create () override
 

Additional Inherited Members

- Public Attributes inherited from gl::Object
unsigned int id = 0xFFFFFFFF
 
- Protected Member Functions inherited from gl::Object
virtual void create ()=0
 
virtual void release ()=0
 
virtual bool isValid () const
 
 Object ()=default
 
virtual ~Object ()=default
 
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 

Detailed Description

Definition at line 23 of file Buffer.h.

Member Function Documentation

◆ allocate()

void gl::Buffer::allocate ( int  size)
virtual

Reimplemented in gl::CudaBuffer, and gl::VulkanBuffer.

Definition at line 43 of file Buffer.cpp.

Here is the caller graph for this function:

◆ bind()

void gl::Buffer::bind ( )

Definition at line 31 of file Buffer.cpp.

Here is the caller graph for this function:

◆ bindBufferBase()

void gl::Buffer::bindBufferBase ( int  idx)

Definition at line 66 of file Buffer.cpp.

Here is the caller graph for this function:

◆ create() [1/2]

void gl::Buffer::create ( )
overrideprivatevirtual

Implements gl::Object.

Definition at line 8 of file Buffer.cpp.

Here is the caller graph for this function:

◆ create() [2/2]

void gl::Buffer::create ( int  target,
int  usage 
)
virtual

Reimplemented in gl::VulkanBuffer.

Definition at line 14 of file Buffer.cpp.

Here is the caller graph for this function:

◆ load()

void gl::Buffer::load ( void *  data,
int  size,
int  offset = 0 
)
virtual

Definition at line 55 of file Buffer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ release()

void gl::Buffer::release ( )
overridevirtual

Implements gl::Object.

Reimplemented in gl::CudaBuffer, and gl::VulkanBuffer.

Definition at line 22 of file Buffer.cpp.

Here is the caller graph for this function:

◆ unbind()

void gl::Buffer::unbind ( )

Definition at line 37 of file Buffer.cpp.

Member Data Documentation

◆ size

int gl::Buffer::size = -1
protected

Definition at line 45 of file Buffer.h.

◆ target

int gl::Buffer::target = -1
protected

Definition at line 43 of file Buffer.h.

◆ usage

int gl::Buffer::usage = -1
protected

Definition at line 44 of file Buffer.h.


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