1 #include "../../include/Draw.h" 31 if( POS(Movement) < IncrVisSuGiu ){
32 if(ya > 90 && ya < 270
33 || (ya < -90 && ya > -270))
40 if(ya > 90 && ya < 270
41 || (ya < -90 && ya > -270))
48 if(ya > 90 && ya < 270
49 || (ya < -90 && ya > -270))
88 case GLUT_RIGHT_BUTTON:
92 case GLUT_LEFT_BUTTON:
104 case GLUT_WHEEL_DOWN:
139 BlendSource = GL_SRC_ALPHA;
140 BlendDest = GL_ONE_MINUS_SRC_ALPHA;
143 BlendSource = GL_SRC_ALPHA;
144 BlendDest = GL_ONE_MINUS_DST_ALPHA;
147 BlendSource = GL_DST_COLOR;
148 BlendDest = GL_ONE_MINUS_SRC_ALPHA;
151 BlendSource = GL_ONE_MINUS_SRC_ALPHA;
152 BlendDest = GL_ONE_MINUS_DST_COLOR;
155 BlendSource = GL_DST_COLOR;
156 BlendDest = GL_SRC_COLOR;
159 BlendSource = GL_ONE;
160 BlendDest = GL_SRC_COLOR;
163 BlendSource = GL_SRC_COLOR;
164 BlendDest = GL_ONE_MINUS_DST_COLOR;
167 BlendSource = GL_ONE_MINUS_SRC_ALPHA;
168 BlendDest = GL_ONE_MINUS_DST_COLOR;
171 BlendSource =GL_DST_COLOR ;
175 BlendSource = GL_DST_COLOR;
176 BlendDest = GL_ONE_MINUS_SRC_ALPHA;
196 printf(
"Coordinate (%.2f,%.2f,%.2f) Angolo (%.2f,%.2f,%.2f) Luce (%.2f,%.2f,%.2f) Ruota %lf)\n" 197 ,
xp,yp,zp,
xa,ya,za,
xf,yf,zf,zw);
205 if(
gr == 3)
gr=0;pr=1;
207 sprintf(
info,
"Grid visualized every %d system unit",
GridStep);
215 sprintf(
info,
"Grid visualized every %d system unit",
GridStep);
253 sprintf(
info,
"Prospective view");
255 sprintf(
info,
"Orthogonal view");
GLfloat xp
Translation, wheel.
int GridEdge[3]
Number of lines per edge.
double InvScaleUn
Rescale the three orthogonal directions.
void DMouseMove(int x, int y)
How the scene rotate (Camera view should be implemented)
void ChangeDxSx(GLfloat Movement)
Movement right left.
int IfInfo
Removes the info line.
GLfloat IncrVisDxSx
Increment visual DxSx, SuGiu.
void ReadScript()
Reads and draw a script file.
GLfloat Rback
Background color.
void Dspecial(int k, int x, int y)
Boh.
int Picture()
Write a tiff file of the data in pixel.
int Values
Number of values to divide the edge in squares.
int gr
Puts/removes the grid.
void keyboardDraw(unsigned char key)
Combines the key with the functions.
int MainWindow
Refers to optional different windows.
int la
Puts/removes the box edges.
int IfMaterial
Activate the illumination for a specific material.
void CameraQuat()
Quaternion camera implementation.
int IfPoint
Decides to draw points or spheres.
int yRem
Old y position of the mouse.
void Lista(int NSquare)
Definition of the primitives.
int Step
Current step for the picture's name.
GLfloat xf
Orientation of the light.
int IfScript
Ignores the script file.
int IfBlend
Activate the blending.
int xRem
Old x position of the mouse.
void ChooseBlend(int Which)
Choose a different blending function.
void Dmouse(int button, int state, int x, int y)
To launch the menu.
void ChangeSuGiu(GLfloat Movement)
Movement up-down.
double GridStep
Finess of the grid.