Skip to content

Instantly share code, notes, and snippets.

@basantbhandari
Created April 4, 2020 13:45
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