nngn
Loading...
Searching...
No Matches
nngn::GLBuffer Struct Referencefinal

#include <resource.h>

Inheritance diagram for nngn::GLBuffer:
Collaboration diagram for nngn::GLBuffer:

Public Types

using Configuration = Graphics::BufferConfiguration
 

Public Member Functions

bool create (GLenum target, u64 size, GLenum usage)
 
bool create (GLenum target, std::span< const std::byte > data, GLenum usage)
 
bool create (const Configuration &conf)
 
bool set_capacity (u64 n)
 
bool destroy ()
 
- Public Member Functions inherited from nngn::OpenGLHandle< GLBuffer >
constexpr OpenGLHandle ()=default
 
constexpr OpenGLHandle (u32 h) noexcept
 
 OpenGLHandle (const OpenGLHandle &)=delete
 
 OpenGLHandle (OpenGLHandle &&lhs) noexcept
 
OpenGLHandleoperator= (const OpenGLHandle &)=delete
 
OpenGLHandleoperator= (OpenGLHandle &&lhs) noexcept
 
 ~OpenGLHandle ()
 
u32 id () const
 
u32id ()
 

Public Attributes

GLenum target = {}
 
GLenum usage = {}
 
GLsizeiptr size = 0
 
GLsizeiptr capacity = 0
 

Member Typedef Documentation

◆ Configuration

Member Function Documentation

◆ create() [1/3]

bool nngn::GLBuffer::create ( const Configuration & conf)
Here is the call graph for this function:

◆ create() [2/3]

bool nngn::GLBuffer::create ( GLenum target,
std::span< const std::byte > data,
GLenum usage )
Here is the call graph for this function:

◆ create() [3/3]

bool nngn::GLBuffer::create ( GLenum target,
u64 size,
GLenum usage )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ destroy()

bool nngn::GLBuffer::destroy ( )
Here is the caller graph for this function:

◆ set_capacity()

bool nngn::GLBuffer::set_capacity ( u64 n)
Here is the caller graph for this function:

Member Data Documentation

◆ capacity

GLsizeiptr nngn::GLBuffer::capacity = 0

◆ size

GLsizeiptr nngn::GLBuffer::size = 0

◆ target

GLenum nngn::GLBuffer::target = {}

◆ usage

GLenum nngn::GLBuffer::usage = {}

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