G:/src/main.cpp File Reference
#include "FlowData.h"
#include "TransferFunktion.h"
#include "GameLevel.h"
#include "Timer.h"
#include <windows.h>
#include <iostream>
#include <stdlib.h>
#include <io.h>
#include <glew.h>
#include <openglut.h>
#include <GL/glui.h>
#include <il.h>
Go to the source code of this file.
Defines |
| #define | MAXADDCHANNELS 3 |
Enumerations |
| enum | GLUICONTROL { GLUI_SYNC = 0,
GLUI_EXIT,
GLUI_PIC,
STREAMLINEMOD
} |
Functions |
| void | glutIdle (void) |
| void | drawChannel () |
| void | drawArrows () |
| void | drawStreamlineTex (int iter) |
| void | updateStreamlines () |
| void | drawStreamlines () |
| void | updateTransferFunction () |
| void | glutDisplay (void) |
| void | glutReshape (int width, int height) |
| void | glutMouse (int button, int state, int x, int y) |
| void | glutMouseWheel (int w, int d, int x, int y) |
| void | glutMotion (int x, int y) |
| void | glutKeyboard (unsigned char key, int x, int y) |
| void | glutClose () |
| void | recalcStreamData () |
| void | recalcStreamData2 () |
| void | GLUIcontrol (int control) |
| char * | loadFile (char *fileName) |
| void | openFile (int control) |
| void | loadSaveTransferfunktion (int control) |
| void | initGLUI () |
| void | initTextures () |
| void | initShaders () |
| int | main (int argc, char **argv) |
Variables |
| HWND | g_hWindow |
| int | g_iWindow |
| int | g_iWidth = 768 |
| int | g_iHeight = 768 |
| float | g_x0 = 0.0f |
| float | g_y0 = 0.0f |
| float | g_fRatio = 1.0f |
| float | g_xyRatio = 1.0f |
| float | g_fPicWidth |
| float | g_fPicHeight |
| GLint | shOriginf2 |
| GLint | shSizef2 |
| const int | rangeX = 516 |
| const int | rangeY = 516 |
| double | dTime |
| int | chX |
| int | chY |
| int | vel |
| int | numAddChannels = -1 |
| int | g_iChannel = 0 |
| GLuint | g_uVelocityTex |
| GLuint | g_uValueTex |
| GLUI_Listbox * | channelList |
| GLint | shChannel |
| GLint | pH |
| GLint | shUseTF |
| GLint | shDrawArrows |
| GLint | shArrowSize |
| GLint | shArrowScaling |
| int | g_iArrowScaling |
| int | g_iArrows |
| char * | vertexShader |
| char * | fragmentShader |
| float * | lut [1+MAXADDCHANNELS] |
| TransferFunktion * | tf [1+MAXADDCHANNELS] |
| TransferFunktionPunkt * | tfp = NULL |
| unsigned int | g_uTFTex = 1 |
| GLuint | g_uArrowTex |
| int | g_iArrowDist = 20 |
| int | g_iArrowSize = 10 |
| FlowData * | dataset |
| GLuint | g_uStreamlineFBO [2] |
| GLuint | g_uStreamlineTex [4] |
| GLenum | att_point [] = {GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT} |
| int | read_tex = 0 |
| int | write_tex = 1 |
| GLint | shSLIterator |
| GLint | shSLStepsize |
| GLint | shSLxPix |
| GLint | shSLyPix |
| GLint | shPicRatio |
| GLint | shIntegration |
| float * | SLtex |
| float * | SLtex2 |
| GLuint | texture |
| float * | streamlineSeeds |
| float * | streamlineSeedsRK |
| int | g_iSeeds |
| int | g_iSteps |
| float | g_iStepsize |
| int | g_iWeightedSL = 1 |
| FlowChannel * | Xchan |
| FlowChannel * | Ychan |
| FlowChannel * | Xvelos |
| FlowChannel * | Yvelos |
| int | g_iEuler = 1 |
| int | g_iRungeKutta = 1 |
| int | g_iGamePause = 1 |
| GameLevel * | level = NULL |
| GLuint | g_uBallTex |
| GLuint | g_uWallTex |
| GLuint | g_uRacketTex |
| GLuint | g_uBrickTex |
| GLuint | g_uOverTex |
| GLuint | g_uWinTex |
Define Documentation
Enumeration Type Documentation
- Enumerator:
| GLUI_SYNC |
|
| GLUI_EXIT |
|
| GLUI_PIC |
|
| STREAMLINEMOD |
|
Definition at line 104 of file main.cpp.
Function Documentation
| void drawStreamlineTex |
( |
int |
iter |
) |
|
| void GLUIcontrol |
( |
int |
control |
) |
|
| void glutDisplay |
( |
void |
|
) |
|
| void glutKeyboard |
( |
unsigned char |
key, |
|
|
int |
x, |
|
|
int |
y | |
|
) |
| | |
| void glutMotion |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
| void glutMouse |
( |
int |
button, |
|
|
int |
state, |
|
|
int |
x, |
|
|
int |
y | |
|
) |
| | |
| void glutMouseWheel |
( |
int |
w, |
|
|
int |
d, |
|
|
int |
x, |
|
|
int |
y | |
|
) |
| | |
| void glutReshape |
( |
int |
width, |
|
|
int |
height | |
|
) |
| | |
| char* loadFile |
( |
char * |
fileName |
) |
|
| void loadSaveTransferfunktion |
( |
int |
control |
) |
|
| int main |
( |
int |
argc, |
|
|
char ** |
argv | |
|
) |
| | |
| void openFile |
( |
int |
control |
) |
|
valueTex[i*rangeX*3+j];
Definition at line 1084 of file main.cpp.
| void recalcStreamData |
( |
|
) |
|
| void recalcStreamData2 |
( |
|
) |
|
| void updateStreamlines |
( |
|
) |
|
| void updateTransferFunction |
( |
|
) |
|
Variable Documentation
| GLenum att_point[] = {GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT} |
| float* lut[1+MAXADDCHANNELS] |
| TransferFunktion* tf[1+MAXADDCHANNELS] |
| TransferFunktionPunkt* tfp = NULL |