HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStGLUtils Class Reference

#include <glUtils.h>

Static Public Member Functions

static HDST_API bool IsGpuComputeEnabled ()
 
static HDST_API VtValue ReadBuffer (GLint vbo, HdTupleType tupleType, int vboOffset, int stride, int numElements)
 
static HDST_API bool GetShaderCompileStatus (GLuint shader, std::string *reason=NULL)
 
static HDST_API bool GetProgramLinkStatus (GLuint program, std::string *reason=NULL)
 

Detailed Description

Definition at line 37 of file glUtils.h.

Member Function Documentation

static HDST_API bool HdStGLUtils::GetProgramLinkStatus ( GLuint  program,
std::string reason = NULL 
)
static

Returns true if the program has been successfully linked. if not, returns false and fills the error log into reason.

static HDST_API bool HdStGLUtils::GetShaderCompileStatus ( GLuint  shader,
std::string reason = NULL 
)
static

Returns true if the shader has been successfully compiled. if not, returns false and fills the error log into reason.

static HDST_API bool HdStGLUtils::IsGpuComputeEnabled ( )
static
static HDST_API VtValue HdStGLUtils::ReadBuffer ( GLint  vbo,
HdTupleType  tupleType,
int  vboOffset,
int  stride,
int  numElements 
)
static

Reads the content of VBO back to VtArray. The vboOffset is expressed in bytes.


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