NVIDIA DeepStream SDK API Reference

9.2 Release
ds3d::gl::Texture Class Reference

Detailed Description

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

Public Member Functions

 ~Texture ()
 
 Texture (Texture &&o)
 
uint32_t w () const
 
uint32_t h () const
 
void bind (GLenum target=GL_TEXTURE_2D)
 
void unbind (GLenum target=GL_TEXTURE_2D)
 
ErrCode uploadImage (int width, int height, void *data, GLenum type=GL_UNSIGNED_BYTE, int internalFormat=GL_RGBA, GLenum format=GL_RGBA, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr)
 
ErrCode allocateImage (int width, int height, GLenum type, int internalFormat, int format, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr)
 
GLuint get () const
 
void reset ()
 
 ~Texture ()
 
 Texture (Texture &&o)
 
uint32_t w () const
 
uint32_t h () const
 
void bind (GLenum target=GL_TEXTURE_2D)
 
void unbind (GLenum target=GL_TEXTURE_2D)
 
ErrCode uploadImage (int width, int height, void *data, GLenum type=GL_UNSIGNED_BYTE, int internalFormat=GL_RGBA, GLenum format=GL_RGBA, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr)
 
ErrCode allocateImage (int width, int height, GLenum type, int internalFormat, int format, std::function< void()> preParam=nullptr, std::function< void()> postParam=nullptr)
 
GLuint get () const
 
void reset ()
 

Static Public Member Functions

static Texture * create ()
 
static Texture * create ()
 

Constructor & Destructor Documentation

◆ ~Texture() [1/2]

ds3d::gl::Texture::~Texture ( )
inline

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

References reset().

◆ Texture() [1/2]

ds3d::gl::Texture::Texture ( Texture &&  o)

◆ ~Texture() [2/2]

ds3d::gl::Texture::~Texture ( )
inline

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

References reset().

◆ Texture() [2/2]

ds3d::gl::Texture::Texture ( Texture &&  o)

Member Function Documentation

◆ allocateImage() [1/2]

ErrCode ds3d::gl::Texture::allocateImage ( int  width,
int  height,
GLenum  type,
int  internalFormat,
int  format,
std::function< void()>  preParam = nullptr,
std::function< void()>  postParam = nullptr 
)
inline

◆ allocateImage() [2/2]

ErrCode ds3d::gl::Texture::allocateImage ( int  width,
int  height,
GLenum  type,
int  internalFormat,
int  format,
std::function< void()>  preParam = nullptr,
std::function< void()>  postParam = nullptr 
)
inline

◆ bind() [1/2]

void ds3d::gl::Texture::bind ( GLenum  target = GL_TEXTURE_2D)
inline

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

References DS_ASSERT.

◆ bind() [2/2]

void ds3d::gl::Texture::bind ( GLenum  target = GL_TEXTURE_2D)
inline

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

References DS_ASSERT.

◆ create() [1/2]

static Texture* ds3d::gl::Texture::create ( )
static

◆ create() [2/2]

static Texture* ds3d::gl::Texture::create ( )
static

◆ get() [1/2]

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

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

◆ get() [2/2]

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

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

◆ h() [1/2]

uint32_t ds3d::gl::Texture::h ( ) const
inline

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

◆ h() [2/2]

uint32_t ds3d::gl::Texture::h ( ) const
inline

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

◆ reset() [1/2]

void ds3d::gl::Texture::reset ( )

Referenced by ~Texture().

◆ reset() [2/2]

void ds3d::gl::Texture::reset ( )

◆ unbind() [1/2]

void ds3d::gl::Texture::unbind ( GLenum  target = GL_TEXTURE_2D)
inline

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

◆ unbind() [2/2]

void ds3d::gl::Texture::unbind ( GLenum  target = GL_TEXTURE_2D)
inline

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

◆ uploadImage() [1/2]

ErrCode ds3d::gl::Texture::uploadImage ( int  width,
int  height,
void *  data,
GLenum  type = GL_UNSIGNED_BYTE,
int  internalFormat = GL_RGBA,
GLenum  format = GL_RGBA,
std::function< void()>  preParam = nullptr,
std::function< void()>  postParam = nullptr 
)

Referenced by allocateImage().

◆ uploadImage() [2/2]

ErrCode ds3d::gl::Texture::uploadImage ( int  width,
int  height,
void *  data,
GLenum  type = GL_UNSIGNED_BYTE,
int  internalFormat = GL_RGBA,
GLenum  format = GL_RGBA,
std::function< void()>  preParam = nullptr,
std::function< void()>  postParam = nullptr 
)

◆ w() [1/2]

uint32_t ds3d::gl::Texture::w ( ) const
inline

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

◆ w() [2/2]

uint32_t ds3d::gl::Texture::w ( ) const
inline

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


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