-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSCIx239.h
42 lines (34 loc) · 1006 Bytes
/
CSCIx239.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef CSCIx239
#define CSCIx239
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#ifdef _WIN32
#include <GL/glew.h>
#else
#include <GL/glut.h>
#endif
#define GL_GLEXT_PROTOTYPES
#define Cos(th) cos(3.1415926/180*(th))
#define Sin(th) sin(3.1415926/180*(th))
#ifdef __cplusplus
extern "C" {
#endif
void Print(const char* format , ...);
void Fatal(const char* format , ...);
void ErrCheck(const char* where);
unsigned int LoadTexBMP(const char* file);
void Project(double fov,double asp,double dim);
int LoadOBJ(const char* file);
int FramesPerSecond(void);
double Elapsed(void);
void CreateShader(int prog,const GLenum type,const char* file);
void PrintProgramLog(int obj);
int CreateShaderProg(const char* VertFile,const char* FragFile);
int CreateNoise3D(int unit);
#ifdef __cplusplus
}
#endif
#endif