NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/libs/ds3d/glprocess/gl_common.h File Reference

Go to the source code of this file.

Namespaces

 ds3d
 
 ds3d::gl
 

Macros

#define GLFW_INCLUDE_NONE
 
#define DS3D_RETURN_GLFW_ERROR(fmt, ...)
 
#define DS3D_GL_FAILED_RETURN(ret, fmt, ...)
 
#define DS3D_RETURN_GL_ERROR(fmt, ...)   DS3D_GL_FAILED_RETURN(ErrCode::kGL, fmt, ##__VA_ARGS__)
 
#define _GL_ERROR_CASE_STR(value)
 

Functions

const char * ds3d::gl::GLErrorString (GLenum err)
 

Macro Definition Documentation

◆ _GL_ERROR_CASE_STR

#define _GL_ERROR_CASE_STR (   value)
Value:
case value: \
return #value

◆ DS3D_GL_FAILED_RETURN

#define DS3D_GL_FAILED_RETURN (   ret,
  fmt,
  ... 
)
Value:
do { \
GLenum __gl_err = glGetError(); \
DS3D_FAILED_RETURN( \
__gl_err == GL_NO_ERROR, ret, "GL error: %s, " fmt, \
::ds3d::gl::GLErrorString(__gl_err), ##__VA_ARGS__); \
} while (0)

Definition at line 47 of file 9.2/sources/libs/ds3d/glprocess/gl_common.h.

◆ DS3D_RETURN_GL_ERROR

#define DS3D_RETURN_GL_ERROR (   fmt,
  ... 
)    DS3D_GL_FAILED_RETURN(ErrCode::kGL, fmt, ##__VA_ARGS__)

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

◆ DS3D_RETURN_GLFW_ERROR

#define DS3D_RETURN_GLFW_ERROR (   fmt,
  ... 
)
Value:
do { \
const char* __description = nullptr; \
int __glfw_code = glfwGetError(&__description); \
if (!__description) \
__description = ""; \
DS3D_FAILED_RETURN( \
__glfw_code == GLFW_NO_ERROR, ErrCode::kGL, "GLFW error: %s, " fmt, __description, \
##__VA_ARGS__); \
} while (0)

Definition at line 34 of file 9.2/sources/libs/ds3d/glprocess/gl_common.h.

◆ GLFW_INCLUDE_NONE

#define GLFW_INCLUDE_NONE

Definition at line 30 of file 9.2/sources/libs/ds3d/glprocess/gl_common.h.

ds3d::gl::GLErrorString
const char * GLErrorString(GLenum err)
Definition: sources/libs/ds3d/glprocess/gl_common.h:63