2011-m2s3-city-builder/display.h
Yoann 033c4d01d8 Grosse amélioration de l'affichage des triangles en fonction de la
normale pour la décroissance de la lumière.
2011-10-04 09:59:55 +02:00

29 lines
512 B
C

#include <SDL/SDL.h>
#include <GL/glew.h>
#include <GL/glu.h>
#include "roam.h"
#include <math.h>
int initWindow();
int mainLoop();
void renderScene();
void setNormals(Triangle *t);
void displayTree(Triangle *t);
void displayTree2();
void Draw_Axes ();
Triangle *t;
int *vertices;
int windowWidth = 1024;
int nbVertex = 0;
int windowHeight = 768;
int xCamera = 1024;
int yCamera = 400;
int zCamera = 1500;
int xSight = 1024;
int ySight = 512;
int zSight = 0;
int yAngle = 0;
int xAngle = 0;
int moveDist = 64;