CameraUtil class provide utility functions useful for camera image capture and rendering.
More...
#include <CameraUtil.h>
Static Public Member Functions |
static uint64_t | GetCurrentTimeus () |
| Gives current time in micro seconds.
|
static GLuint | CompileAndLinkShaderProgram (const char *vShaderStr, const char *fShaderStr) |
| Compiles the given fragment and vertex shader source code and linked into an OpenGL shader program object stored in mProgramObject.
|
static bool | LoadShader (GLenum type, const char *shaderSrc, GLuint &shader) |
| Creates shader object by loading shader source, and compiling shader.
|
static bool | checkGlError (const char *op) |
| Check for opengl error and prints the error message if an error was found.
|
static uint64_t | GetCurrentTimeus () |
| Gives current time in micro seconds.
|
static GLuint | CompileAndLinkShaderProgram (const char *vShaderStr, const char *fShaderStr) |
| Compiles the given fragment and vertex shader source code and linked into an OpenGL shader program object stored in mProgramObject.
|
static bool | LoadShader (GLenum type, const char *shaderSrc, GLuint &shader) |
| Creates shader object by loading shader source, and compiling shader.
|
static bool | checkGlError (const char *op) |
| Check for opengl error and prints the error message if an error was found.
|
Detailed Description
CameraUtil class provide utility functions useful for camera image capture and rendering.
Member Function Documentation
Check for opengl error and prints the error message if an error was found.
- Parameters:
-
op | String specifying the OpenGL operation performed before this check. |
- Returns:
- true if an error was found. false otherwise.
Check for opengl error and prints the error message if an error was found.
- Parameters:
-
op | String specifying the OpenGL operation performed before this check. |
- Returns:
- true if an error was found. false otherwise.
Compiles the given fragment and vertex shader source code and linked into an OpenGL shader program object stored in mProgramObject.
- Parameters:
-
vShaderStr | Vertex Shader Source code string. |
fShaderStr | Fragment Shader Source code string. |
- Returns:
- returns 0 if cannot compile and link, non-zero if successfull.
Compiles the given fragment and vertex shader source code and linked into an OpenGL shader program object stored in mProgramObject.
- Parameters:
-
vShaderStr | Vertex Shader Source code string. |
fShaderStr | Fragment Shader Source code string. |
- Returns:
- returns 0 if cannot compile and link, non-zero if successfull.
Gives current time in micro seconds.
- Returns:
- returns current time in micro seconds.
Gives current time in micro seconds.
- Returns:
- returns current time in micro seconds.
Creates shader object by loading shader source, and compiling shader.
- Parameters:
-
type | shader type |
shaderSrc | shader source. |
shader | i/o parameter - reference to a shader object. |
- Returns:
- returns true if successfull false otherwise.
Creates shader object by loading shader source, and compiling shader.
- Parameters:
-
type | shader type |
shaderSrc | shader source. |
shader | i/o parameter - reference to a shader object. |
- Returns:
- returns true if successfull false otherwise.
The documentation for this class was generated from the following files: