Files Class List
cyGL.h File Reference

Detailed Description

OpenGL helper classes.

Author
Cem Yuksel

The classes in this file are designed to provide convenient interfaces for some OpenGL features. They are not intended to provide the full flexibility of the underlying OpenGL functions, but they greatly simplify the implementation of some general OpenGL operations.

#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <assert.h>

Classes

class  GL
 
class  GLDebugCallback
 
class  GLTexture< TEXTURE_TYPE >
 
class  GLTexture1< TEXTURE_TYPE >
 
class  GLTexture2< TEXTURE_TYPE >
 
class  GLTexture3< TEXTURE_TYPE >
 
class  GLTextureCubeMap
 
class  GLRenderBuffer< TEXTURE_TYPE >
 
class  GLRenderTexture< TEXTURE_TYPE >
 
class  GLRenderDepth< TEXTURE_TYPE >
 
class  GLSLShader
 
class  GLSLProgram
 

Macros

#define CY_GL_INVALID_ID   0xFFFFFFFF
 
#define CY_GL_ERROR   _CY_GL_ERROR
 
#define CY_GL_ERR(gl_function_call)   _CY_GL_ERR(gl_function_call)
 
#define CY_GL_ERROR_D
 
#define CY_GL_ERR_D
 
#define CY_GL_REGISTER_DEBUG_CALLBACK   _CY_GL_REGISTER_DEBUG_CALLBACK
 

Typedefs

typedef GLTexture1< GL_TEXTURE_1D > GLTexture1D
 
typedef GLTexture2< GL_TEXTURE_2D > GLTexture2D
 
typedef GLTexture3< GL_TEXTURE_3D > GLTexture3D
 
typedef GLRenderTexture< GL_TEXTURE_2D > GLRenderTexture2D
 
typedef GLRenderTexture< GL_TEXTURE_RECTANGLE > GLRenderTextureRect
 
typedef GLRenderDepth< GL_TEXTURE_2D > GLRenderDepth2D
 
typedef GLRenderDepth< GL_TEXTURE_RECTANGLE > GLRenderDepthRect
 
typedef cy::GL cyGL
 
typedef cy::GLDebugCallback cyGLDebugCallback
 
typedef cy::GLTexture1D cyGLTexture1D
 
typedef cy::GLTexture2D cyGLTexture2D
 
typedef cy::GLTexture3D cyGLTexture3D
 
typedef cy::GLTextureCubeMap cyGLTextureCubeMap
 
typedef cy::GLRenderTexture2D cyGLRenderTexture2D
 
typedef cy::GLRenderTextureRect cyGLRenderTextureRect
 
typedef cy::GLRenderDepth2D cyGLRenderDepth2D
 
typedef cy::GLRenderDepthRect cyGLRenderDepthRect
 
typedef cy::GLSLShader cyGLSLShader
 
typedef cy::GLSLProgram cyGLSLProgram
 

Macro Definition Documentation

§ CY_GL_INVALID_ID

#define CY_GL_INVALID_ID   0xFFFFFFFF

Invalid ID value.

§ CY_GL_ERROR

#define CY_GL_ERROR   _CY_GL_ERROR

Checks and prints OpenGL error messages to the default output stream.

§ CY_GL_ERR

#define CY_GL_ERR (   gl_function_call)    _CY_GL_ERR(gl_function_call)

Checks OpenGL errors before calling the given function, calls the function, and then checks OpenGL errors again. If an error is found, it is printed to the default output stream.

§ CY_GL_ERROR_D

#define CY_GL_ERROR_D

Checks and prints OpenGL error messages using CY_GL_ERROR in code compiled in debug mode only (with _DEBUG defined).

§ CY_GL_ERR_D

#define CY_GL_ERR_D

Checks and prints OpenGL error messages using CY_GL_ERR in code compiled in debug mode only (with _DEBUG defined).

§ CY_GL_REGISTER_DEBUG_CALLBACK

#define CY_GL_REGISTER_DEBUG_CALLBACK   _CY_GL_REGISTER_DEBUG_CALLBACK

Registers the OpenGL callback by ignoring notifications. After this macro is called, the debug messages get printed to the default output stream. The OpenGL context must be created before using this macro. Note that OpenGL may not generate debug messages if it is not created in debug mode.

Typedef Documentation

§ GLTexture1D

typedef GLTexture1<GL_TEXTURE_1D > GLTexture1D

OpenGL 1D Texture.

§ GLTexture2D

typedef GLTexture2<GL_TEXTURE_2D > GLTexture2D

OpenGL 2D Texture.

§ GLTexture3D

typedef GLTexture3<GL_TEXTURE_3D > GLTexture3D

OpenGL 3D Texture.

§ GLRenderTexture2D

typedef GLRenderTexture<GL_TEXTURE_2D> GLRenderTexture2D

OpenGL render color buffer with a 2D texture.

§ GLRenderTextureRect

typedef GLRenderTexture<GL_TEXTURE_RECTANGLE> GLRenderTextureRect

OpenGL render color buffer with a rectangle texture.

§ GLRenderDepth2D

typedef GLRenderDepth<GL_TEXTURE_2D> GLRenderDepth2D

OpenGL render depth buffer with a 2D texture.

§ GLRenderDepthRect

typedef GLRenderDepth<GL_TEXTURE_RECTANGLE> GLRenderDepthRect

OpenGL render depth buffer with a rectangle texture.

§ cyGL

typedef cy::GL cyGL

General OpenGL queries.

§ cyGLDebugCallback

OpenGL debug callback class.

§ cyGLTexture1D

OpenGL 1D Texture.

§ cyGLTexture2D

OpenGL 2D Texture.

§ cyGLTexture3D

OpenGL 3D Texture.

§ cyGLTextureCubeMap

OpenGL Cube Map Texture.

§ cyGLRenderTexture2D

OpenGL render color buffer with a 2D texture.

§ cyGLRenderTextureRect

OpenGL render color buffer with a rectangle texture.

§ cyGLRenderDepth2D

OpenGL render depth buffer with a 2D texture.

§ cyGLRenderDepthRect

OpenGL render depth buffer with a rectangle texture.

§ cyGLSLShader

GLSL shader class.

§ cyGLSLProgram

GLSL program class.