PropaneShader Class Reference

A cross platform GLSL shader object. More...

#include <PropaneShader.h>

List of all members.

Public Member Functions

virtual bool hasExtensionsInstalled ()
 Returns true if the fragment and vertex shader extensions are enabled.
virtual bool hasMultitexture ()
 Returns true if the device has multitexture support.
virtual bool functional () const
 Returns true if the shader functionality is usable.
virtual void configureGL (int width, int height)
 Sets up OpenGL for your platform to use shaders.
virtual ~PropaneShader ()
 Destroy the shader and free the temporary texture.
 PropaneShader (char *vertexFile, char *fragmentFile)
 Load the shader from a vertex and fragment source code file.
 PropaneShader ()
 Initialize the shader but don't load anything.
virtual bool load (char *vertexfile, char *fragmentfile)
 Load the shader from a vertex and fragment source code file.
virtual int loadShaderFile (char *vertexfile, char *fragmentfile)
 Loads the shader from file.
virtual int loadShaderSource (const char *vertexbuf, const char *fragbuf)
 Loads the shader from a character buffer.
void dumpLog (char *filename)
 Drops the compile log to file.
virtual void passTexture (GLuint *mtexture)
 Passes a texture to the shader.
virtual void turnOn ()
 Enables the shader.
virtual void turnOff ()
 Disables the shader.
void beginRenderToTexture ()
 Starts rendering to texture.
void endRenderToTexture ()
 Stops rendering to texture.
GLuint * getRenderTexture ()
 Allows you to get a pointer to the render texture.
void initRenderToTexture ()
 Clears the render target texture.

Protected Attributes

GLhandleARB v
 Handles to the vertex shader, fragment shader, and program.
GLuint * texture
 The render-target texture.
int iWidth
 The width and height of the render-target.
bool shaderCapable
 An internal variable if the current machine is shader capable.


Detailed Description

A cross platform GLSL shader object.


The documentation for this class was generated from the following files:
Generated on Thu Aug 31 20:26:03 2006 for Propane Injector by  doxygen 1.4.7