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

gliftEx1.cpp File Reference

#include <iostream>
#include <GL/glut.h>
#include <vec2.h>
#include <texNd.h>
#include <texDataNd.h>
#include <shader.h>
#include <planarQuad.h>
#include <shadedPrim.h>
#include <multiPrim.h>
#include <renderPass.h>
#include <glew.h>

Go to the source code of this file.

Compounds

class  Blend
class  Color4f

Functions

vec2i g_winDimen (0)
GLubytegenGrayImageRGB (int numElts)
SingleTex * setupGrayScaleGradTex (int numElts)
void init (void)
void display (void)
void reshape (int w, int h)
int main (int argc, char **argv)

Variables

Blendg_blend = NULL
SingleTex * g_greyTex = NULL
RenderPass * g_pass1 = NULL


Function Documentation

void display void   ) 
 

Definition at line 165 of file gliftEx1.cpp.

References Blend::alpha(), alpha, g_blend, g_pass1, GL_COLOR_BUFFER_BIT, and glClear().

Referenced by SlicerWidget::conf(), and main().

vec2i g_winDimen  ) 
 

Referenced by init(), main(), and reshape().

GLubyte* genGrayImageRGB int  numElts  ) 
 

Definition at line 35 of file gliftEx1.cpp.

References GLubyte, image, index, x, and y.

Referenced by reshape(), and setupGrayScaleGradTex().

void init void   ) 
 

Definition at line 122 of file gliftEx1.cpp.

References g_blend, g_greyTex, g_pass1, g_winDimen(), glClearColor(), glew, setupGrayScaleGradTex(), gutz::vec2f, gutz::vec4f, glift::VecDrawP, and z.

Referenced by glift::CoordTrans::CoordTrans(), main(), glift::PBuffGlift::PBuffGlift(), glift::PixelShaderATI8K::PixelShaderATI8K(), PNoise::PNoise(), glift::PixelShaderATI8K::reset(), and glift::SubdivPlanarQuadM::SubdivPlanarQuadM().

int main int  argc,
char **  argv
 

Definition at line 208 of file gliftEx1.cpp.

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

void reshape int  w,
int  h
 

Definition at line 182 of file gliftEx1.cpp.

References count, g_greyTex, g_winDimen(), genGrayImageRGB(), GL_MODELVIEW, GL_PROJECTION, GL_RGB, GL_TEXTURE_2D, GL_UNSIGNED_BYTE, glLoadIdentity(), glMatrixMode(), GLsizei, GLubyte, glViewport(), image, texData, gutz::vec2i, gutz::vec3i, and w.

Referenced by main().

SingleTex* setupGrayScaleGradTex int  numElts  ) 
 

Definition at line 57 of file gliftEx1.cpp.

References gutz::arrayw1ub, genGrayImageRGB(), GL_RGB, GL_TEXTURE_2D, GL_UNSIGNED_BYTE, GLubyte, image, texData, texState, glift::TS_LINEAR, glift::TS_REPLACE, TS_S_CLAMP, glift::TS_T_CLAMP, and gutz::vec2i.


Variable Documentation

Blend* g_blend = NULL
 

Definition at line 30 of file gliftEx1.cpp.

Referenced by display(), and init().

SingleTex* g_greyTex = NULL
 

Definition at line 31 of file gliftEx1.cpp.

Referenced by init(), and reshape().

RenderPass* g_pass1 = NULL
 

Definition at line 32 of file gliftEx1.cpp.

Referenced by display(), and init().


Send questions, comments, and bug reports to:
jmk