NVIDIA DeepStream SDK API Reference

9.2 Release
ds3d::gl::Program Class Reference

Detailed Description

Definition at line 49 of file sources/libs/ds3d/glprocess/gl_program.h.

Public Member Functions

 Program ()=default
 
 ~Program ()
 
 Program (Program &&o)
 
ErrCode create ()
 
ErrCode link (const std::vector< Shader > &shaders)
 
bool isValid () const
 
int uniformLocation (const std::string &name)
 
int attribLocation (const std::string &name)
 
ErrCode useProgram ()
 
ErrCode closeProgram ()
 
GLuint get () const
 
void reset (GLuint newVal=0)
 
 Program ()=default
 
 ~Program ()
 
 Program (Program &&o)
 
ErrCode create ()
 
ErrCode link (const std::vector< Shader > &shaders)
 
bool isValid () const
 
int uniformLocation (const std::string &name)
 
int attribLocation (const std::string &name)
 
ErrCode useProgram ()
 
ErrCode closeProgram ()
 
GLuint get () const
 
void reset (GLuint newVal=0)
 

Constructor & Destructor Documentation

◆ Program() [1/4]

ds3d::gl::Program::Program ( )
default

◆ ~Program() [1/2]

ds3d::gl::Program::~Program ( )
inline

Definition at line 55 of file sources/libs/ds3d/glprocess/gl_program.h.

References reset().

◆ Program() [2/4]

ds3d::gl::Program::Program ( Program &&  o)
inline

Definition at line 56 of file sources/libs/ds3d/glprocess/gl_program.h.

References reset().

◆ Program() [3/4]

ds3d::gl::Program::Program ( )
default

◆ ~Program() [2/2]

ds3d::gl::Program::~Program ( )
inline

Definition at line 55 of file 9.2/sources/libs/ds3d/glprocess/gl_program.h.

References reset().

◆ Program() [4/4]

ds3d::gl::Program::Program ( Program &&  o)
inline

Definition at line 56 of file 9.2/sources/libs/ds3d/glprocess/gl_program.h.

References reset().

Member Function Documentation

◆ attribLocation() [1/2]

int ds3d::gl::Program::attribLocation ( const std::string &  name)
inline

Definition at line 71 of file sources/libs/ds3d/glprocess/gl_program.h.

References DS_ASSERT, and get().

◆ attribLocation() [2/2]

int ds3d::gl::Program::attribLocation ( const std::string &  name)
inline

Definition at line 71 of file 9.2/sources/libs/ds3d/glprocess/gl_program.h.

References DS_ASSERT, and get().

◆ closeProgram() [1/2]

ErrCode ds3d::gl::Program::closeProgram ( )
inline

◆ closeProgram() [2/2]

ErrCode ds3d::gl::Program::closeProgram ( )
inline

Definition at line 84 of file sources/libs/ds3d/glprocess/gl_program.h.

References DS3D_RETURN_GL_ERROR, and ds3d::kGood.

◆ create() [1/2]

ErrCode ds3d::gl::Program::create ( )

◆ create() [2/2]

ErrCode ds3d::gl::Program::create ( )

◆ get() [1/2]

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

Definition at line 91 of file 9.2/sources/libs/ds3d/glprocess/gl_program.h.

◆ get() [2/2]

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

◆ isValid() [1/2]

bool ds3d::gl::Program::isValid ( ) const

◆ isValid() [2/2]

bool ds3d::gl::Program::isValid ( ) const

◆ link() [1/2]

ErrCode ds3d::gl::Program::link ( const std::vector< Shader > &  shaders)

◆ link() [2/2]

ErrCode ds3d::gl::Program::link ( const std::vector< Shader > &  shaders)

◆ reset() [1/2]

void ds3d::gl::Program::reset ( GLuint  newVal = 0)
inline

Definition at line 92 of file 9.2/sources/libs/ds3d/glprocess/gl_program.h.

◆ reset() [2/2]

void ds3d::gl::Program::reset ( GLuint  newVal = 0)
inline

Definition at line 92 of file sources/libs/ds3d/glprocess/gl_program.h.

Referenced by Program(), and ~Program().

◆ uniformLocation() [1/2]

int ds3d::gl::Program::uniformLocation ( const std::string &  name)
inline

Definition at line 66 of file 9.2/sources/libs/ds3d/glprocess/gl_program.h.

References DS_ASSERT, and get().

◆ uniformLocation() [2/2]

int ds3d::gl::Program::uniformLocation ( const std::string &  name)
inline

Definition at line 66 of file sources/libs/ds3d/glprocess/gl_program.h.

References DS_ASSERT, and get().

◆ useProgram() [1/2]

ErrCode ds3d::gl::Program::useProgram ( )
inline

◆ useProgram() [2/2]

ErrCode ds3d::gl::Program::useProgram ( )
inline

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