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
 
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 ()
 
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
 
constexpr OpenGLHandle ()=default
 
constexpr OpenGLHandle (u32 h) noexcept
 
 OpenGLHandle (const OpenGLHandle &)=delete
 
 OpenGLHandle (OpenGLHandle &&lhs) noexcept
 
OpenGLHandleoperator= (const OpenGLHandle &)=delete
 
OpenGLHandleoperator= (OpenGLHandle &&lhs) noexcept
 
OpenGLHandleoperator= (const OpenGLHandle &)=delete
 
OpenGLHandleoperator= (OpenGLHandle &&lhs) noexcept
 
 ~OpenGLHandle ()
 
 ~OpenGLHandle ()
 
u32 id () const
 
u32id ()
 
u32 id () const
 
u32id ()
 

Public Attributes

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

Member Typedef Documentation

◆ Configuration [1/2]

◆ Configuration [2/2]

Member Function Documentation

◆ create() [1/6]

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

◆ create() [2/6]

bool nngn::GLBuffer::create ( const Configuration conf)

◆ create() [3/6]

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

◆ create() [4/6]

bool nngn::GLBuffer::create ( GLenum  target,
std::span< const std::byte >  data,
GLenum  usage 
)

◆ create() [5/6]

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:

◆ create() [6/6]

bool nngn::GLBuffer::create ( GLenum  target,
u64  size,
GLenum  usage 
)

◆ destroy() [1/2]

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

◆ destroy() [2/2]

bool nngn::GLBuffer::destroy ( )

◆ set_capacity() [1/2]

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

◆ set_capacity() [2/2]

bool nngn::GLBuffer::set_capacity ( u64  n)

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: