arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

rtt.cpp File Reference

#include <iostream.h>
#include <GL/glui.h>
#include <glew.h>
#include <vec2.h>
#include <vec3.h>
#include <pbuffGlift.h>
#include <texNd.h>
#include <multiTex.h>
#include <shader.h>
#include <pixelShaderATI8K.h>
#include <texCoordPerturb.h>
#include <planarQuad.h>
#include <shadedPrim.h>
#include <renderPass.h>
#include <texDataNd.h>

Go to the source code of this file.

Compounds

class  GlutSphere
class  RenderState2D

Functions

vec2i g_dimen (0)
void multTwoShaderATI ()
void diffShaderATI ()
SingleTex * setupGrayScaleGradTex (PBuffer *pbuff)
void pbuffInit ()
void init (void)
void display (void)
void reshape (int w, int h)
void setupGluiStuff (GLint &mainWindow)
int main (int argc, char **argv)

Variables

GLUI * g_glui = NULL
RenderPass * g_pass1 = NULL
RenderPass * g_pass2 = NULL
SingleTex * g_greyTex = NULL
PBufferg_pbuff = NULL
DrawableGLI * g_prim = NULL


Function Documentation

void diffShaderATI  ) 
 

Definition at line 83 of file rtt.cpp.

References GL_2X_BIT_ATI, GL_NONE, GL_REG_0_ATI, GL_REG_1_ATI, GL_SATURATE_BIT_ATI, GL_SUB_ATI, GL_SWIZZLE_STR_ATI, GL_TEXTURE0_ARB, GL_TEXTURE1_ARB, glColorFragmentOp2ATI, and glSampleMapATI.

Referenced by init().

void display void   ) 
 

Definition at line 233 of file rtt.cpp.

References g_pass1, g_pass2, GL_COLOR_BUFFER_BIT, glClear(), and glFlush().

vec2i g_dimen  ) 
 

Referenced by RenderState2D::bindDef(), init(), main(), and reshape().

void init void   ) 
 

Definition at line 167 of file rtt.cpp.

References diffShaderATI(), g_dimen(), g_greyTex, g_pass1, g_pass2, g_pbuff, g_prim, glClearColor(), glew, multTwoShaderATI(), pbuffInit(), setupGrayScaleGradTex(), texState, glift::TS_NEAREST, glift::TS_R_CLAMP, TS_S_CLAMP, gutz::vec2f, glift::VecTexP, and glift::VecTexTrans.

int main int  argc,
char **  argv
 

Definition at line 275 of file rtt.cpp.

References display(), g_dimen(), glErr(), GLint, init(), reshape(), setupGluiStuff(), and gutz::vec2i.

void multTwoShaderATI  ) 
 

Definition at line 71 of file rtt.cpp.

References GL_ADD_ATI, GL_HALF_BIT_ATI, GL_NONE, GL_REG_0_ATI, GL_SWIZZLE_STR_ATI, GL_TEXTURE0_ARB, glColorFragmentOp2ATI, and glSampleMapATI.

Referenced by init().

void pbuffInit  ) 
 

Definition at line 135 of file rtt.cpp.

References GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_DEPTH_TEST, GL_DIFFUSE, GL_FRONT, GL_LIGHT0, GL_LIGHTING, GL_MODELVIEW, GL_POSITION, GL_PROJECTION, GL_SHININESS, GL_SMOOTH, GL_SPECULAR, GL_VERTEX_ARRAY, glClear(), glClearColor(), glEnable(), glEnableClientState(), GLfloat, glLightfv(), glLoadIdentity(), glMaterialf(), glMaterialfv(), glMatrixMode(), and glShadeModel().

Referenced by init().

void reshape int  w,
int  h
 

Definition at line 245 of file rtt.cpp.

References g_dimen(), GL_MODELVIEW, GL_PROJECTION, glErr(), glLoadIdentity(), glMatrixMode(), GLsizei, glViewport(), gutz::vec2i, and w.

void setupGluiStuff GLint mainWindow  ) 
 

Definition at line 263 of file rtt.cpp.

References g_glui.

Referenced by main().

SingleTex* setupGrayScaleGradTex PBuffer pbuff  ) 
 

Definition at line 100 of file rtt.cpp.

References gutz::arrayo1ub, GL_LUMINANCE, GL_TEXTURE_2D, GL_UNSIGNED_BYTE, GLubyte, image, index, texData, texState, glift::TS_NEAREST, glift::TS_REPLACE, TS_S_CLAMP, glift::TS_T_CLAMP, gutz::vec2i, x, and y.

Referenced by init().


Variable Documentation

GLUI* g_glui = NULL
 

Definition at line 29 of file rtt.cpp.

Referenced by setupGluiStuff().

SingleTex* g_greyTex = NULL
 

Definition at line 32 of file rtt.cpp.

RenderPass* g_pass1 = NULL
 

Definition at line 30 of file rtt.cpp.

RenderPass* g_pass2 = NULL
 

Definition at line 31 of file rtt.cpp.

Referenced by display(), and init().

PBuffer* g_pbuff = NULL
 

Definition at line 33 of file rtt.cpp.

Referenced by init().

DrawableGLI* g_prim = NULL
 

Definition at line 34 of file rtt.cpp.

Referenced by init().


Send questions, comments, and bug reports to:
jmk