Created
April 4, 2020 13:45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct point{ | |
float x; | |
float y; | |
float z; | |
}; | |
struct face { | |
int vtx[3]; | |
}; | |
extern int globalW, globalH; | |
//-------- Functions -------------------------------- | |
void Render(); | |
// The function responsible for drawing everything in the | |
// OpenGL context associated to a window. | |
void Resize(int w, int h); | |
// Handle the window size changes and define the world coordinate | |
// system and projection type | |
void Setup(); | |
// Set up the OpenGL state machine and create a light source | |
void Idle(); | |
void Keyboard(unsigned char key, int x, int y); | |
//functin for handling mouse whell event | |
void RandomCoordinates(point*); | |
void DrawStars(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment