PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::Buffer Class Reference

#include <Buffer.h>

Inheritance diagram for dyno::Buffer:
Collaboration diagram for dyno::Buffer:

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)
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Protected Attributes

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

Private Member Functions

virtual void create () override
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::Object
static bool registerClass (ClassInfo *ci)
 
static ObjectcreateObject (std::string name)
 
static std::map< std::string, ClassInfo * > * getClassMap ()
 
static ObjectId baseId ()
 Base Id.
 
- Public Attributes inherited from dyno::GraphicsObject
unsigned int id = 0xFFFFFFFF
 
- Protected Member Functions inherited from dyno::GraphicsObject
virtual bool isValid () const
 
 GraphicsObject ()=default
 
virtual ~GraphicsObject ()=default
 
 GraphicsObject (const GraphicsObject &)=delete
 
GraphicsObjectoperator= (const GraphicsObject &)=delete
 

Detailed Description

Definition at line 23 of file Buffer.h.

Member Function Documentation

◆ allocate()

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

Definition at line 43 of file Buffer.cpp.

Here is the caller graph for this function:

◆ bind()

void dyno::Buffer::bind ( )

Definition at line 31 of file Buffer.cpp.

Here is the caller graph for this function:

◆ bindBufferBase()

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

Definition at line 66 of file Buffer.cpp.

◆ create() [1/2]

void dyno::Buffer::create ( )
overrideprivatevirtual

Implements dyno::GraphicsObject.

Definition at line 8 of file Buffer.cpp.

◆ create() [2/2]

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

Definition at line 14 of file Buffer.cpp.

◆ load()

void dyno::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 dyno::Buffer::release ( )
overridevirtual

Implements dyno::GraphicsObject.

Definition at line 22 of file Buffer.cpp.

◆ unbind()

void dyno::Buffer::unbind ( )

Definition at line 37 of file Buffer.cpp.

Member Data Documentation

◆ size

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

Definition at line 45 of file Buffer.h.

◆ target

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

Definition at line 43 of file Buffer.h.

◆ usage

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

Definition at line 44 of file Buffer.h.


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