NVIDIA DeepStream SDK API Reference

9.2 Release
ds3d::gl::VertexBuf Class Reference

Detailed Description

Definition at line 26 of file sources/libs/ds3d/glprocess/gl_buf.h.

Public Member Functions

 ~VertexBuf ()
 
 VertexBuf (VertexBuf &&o)
 
void bind ()
 
void unbind ()
 
template<typename DT >
ErrCode upload (size_t size, const DT *data, GLenum usage=GL_STATIC_DRAW)
 
template<typename DT >
ErrCode allocate (size_t num, GLenum usage=GL_STATIC_DRAW)
 
ErrCode uploadSubData (int64_t offset, size_t bytes, const void *data)
 
void attribPtr (GLuint location, int compSize, size_t stride, GLenum type=GL_FLOAT, GLboolean normalized=GL_FALSE, void *offset=0)
 
GLuint get () const
 
void reset ()
 
 ~VertexBuf ()
 
 VertexBuf (VertexBuf &&o)
 
void bind ()
 
void unbind ()
 
template<typename DT >
ErrCode upload (size_t size, const DT *data, GLenum usage=GL_STATIC_DRAW)
 
template<typename DT >
ErrCode allocate (size_t num, GLenum usage=GL_STATIC_DRAW)
 
ErrCode uploadSubData (int64_t offset, size_t bytes, const void *data)
 
void attribPtr (GLuint location, int compSize, size_t stride, GLenum type=GL_FLOAT, GLboolean normalized=GL_FALSE, void *offset=0)
 
GLuint get () const
 
void reset ()
 

Static Public Member Functions

static VertexBuf * create (GLenum type=GL_ARRAY_BUFFER)
 
static VertexBuf * create (GLenum type=GL_ARRAY_BUFFER)
 

Constructor & Destructor Documentation

◆ ~VertexBuf() [1/2]

ds3d::gl::VertexBuf::~VertexBuf ( )
inline

Definition at line 36 of file sources/libs/ds3d/glprocess/gl_buf.h.

References reset().

◆ VertexBuf() [1/2]

ds3d::gl::VertexBuf::VertexBuf ( VertexBuf &&  o)

◆ ~VertexBuf() [2/2]

ds3d::gl::VertexBuf::~VertexBuf ( )
inline

Definition at line 36 of file 9.2/sources/libs/ds3d/glprocess/gl_buf.h.

References reset().

◆ VertexBuf() [2/2]

ds3d::gl::VertexBuf::VertexBuf ( VertexBuf &&  o)

Member Function Documentation

◆ allocate() [1/2]

template<typename DT >
ErrCode ds3d::gl::VertexBuf::allocate ( size_t  num,
GLenum  usage = GL_STATIC_DRAW 
)
inline

Definition at line 60 of file sources/libs/ds3d/glprocess/gl_buf.h.

◆ allocate() [2/2]

template<typename DT >
ErrCode ds3d::gl::VertexBuf::allocate ( size_t  num,
GLenum  usage = GL_STATIC_DRAW 
)
inline

Definition at line 60 of file 9.2/sources/libs/ds3d/glprocess/gl_buf.h.

◆ attribPtr() [1/2]

void ds3d::gl::VertexBuf::attribPtr ( GLuint  location,
int  compSize,
size_t  stride,
GLenum  type = GL_FLOAT,
GLboolean  normalized = GL_FALSE,
void *  offset = 0 
)
inline

Definition at line 76 of file 9.2/sources/libs/ds3d/glprocess/gl_buf.h.

References bind(), DS_ASSERT, get(), and unbind().

◆ attribPtr() [2/2]

void ds3d::gl::VertexBuf::attribPtr ( GLuint  location,
int  compSize,
size_t  stride,
GLenum  type = GL_FLOAT,
GLboolean  normalized = GL_FALSE,
void *  offset = 0 
)
inline

Definition at line 76 of file sources/libs/ds3d/glprocess/gl_buf.h.

References bind(), DS_ASSERT, get(), and unbind().

◆ bind() [1/2]

void ds3d::gl::VertexBuf::bind ( )
inline

Definition at line 39 of file sources/libs/ds3d/glprocess/gl_buf.h.

References DS_ASSERT, and get().

Referenced by attribPtr(), upload(), and uploadSubData().

◆ bind() [2/2]

void ds3d::gl::VertexBuf::bind ( )
inline

Definition at line 39 of file 9.2/sources/libs/ds3d/glprocess/gl_buf.h.

References DS_ASSERT, and get().

◆ create() [1/2]

static VertexBuf* ds3d::gl::VertexBuf::create ( GLenum  type = GL_ARRAY_BUFFER)
static

◆ create() [2/2]

static VertexBuf* ds3d::gl::VertexBuf::create ( GLenum  type = GL_ARRAY_BUFFER)
static

◆ get() [1/2]

GLuint ds3d::gl::VertexBuf::get ( ) const
inline

Definition at line 89 of file 9.2/sources/libs/ds3d/glprocess/gl_buf.h.

◆ get() [2/2]

GLuint ds3d::gl::VertexBuf::get ( ) const
inline

Definition at line 89 of file sources/libs/ds3d/glprocess/gl_buf.h.

Referenced by attribPtr(), bind(), upload(), and uploadSubData().

◆ reset() [1/2]

void ds3d::gl::VertexBuf::reset ( )

Referenced by ~VertexBuf().

◆ reset() [2/2]

void ds3d::gl::VertexBuf::reset ( )

◆ unbind() [1/2]

void ds3d::gl::VertexBuf::unbind ( )
inline

Definition at line 44 of file sources/libs/ds3d/glprocess/gl_buf.h.

Referenced by attribPtr(), upload(), and uploadSubData().

◆ unbind() [2/2]

void ds3d::gl::VertexBuf::unbind ( )
inline

Definition at line 44 of file 9.2/sources/libs/ds3d/glprocess/gl_buf.h.

◆ upload() [1/2]

template<typename DT >
ErrCode ds3d::gl::VertexBuf::upload ( size_t  size,
const DT *  data,
GLenum  usage = GL_STATIC_DRAW 
)
inline

◆ upload() [2/2]

template<typename DT >
ErrCode ds3d::gl::VertexBuf::upload ( size_t  size,
const DT *  data,
GLenum  usage = GL_STATIC_DRAW 
)
inline

◆ uploadSubData() [1/2]

ErrCode ds3d::gl::VertexBuf::uploadSubData ( int64_t  offset,
size_t  bytes,
const void *  data 
)
inline

◆ uploadSubData() [2/2]

ErrCode ds3d::gl::VertexBuf::uploadSubData ( int64_t  offset,
size_t  bytes,
const void *  data 
)
inline

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