Functions | Variables
cube.c File Reference
#include <GL/glut.h>
Include dependency graph for cube.c:

Go to the source code of this file.

Functions

void display (void)
void drawBox (void)
void init (void)
int main (int argc, char **argv)

Variables

GLint faces [6][4]
GLfloat light_diffuse [] = {1.0, 0.0, 0.0, 1.0}
GLfloat light_position [] = {1.0, 1.0, 1.0, 0.0}
GLfloat n [6][3]
GLfloat v [8][3]

Function Documentation

void display ( void  )

Definition at line 40 of file cube.c.

void drawBox ( void  )

Definition at line 24 of file cube.c.

void init ( void  )

Definition at line 48 of file cube.c.

int main ( int  argc,
char **  argv 
)

Definition at line 86 of file cube.c.


Variable Documentation

GLint faces[6][4]
Initial value:
 {  
  {0, 1, 2, 3}, {3, 2, 6, 7}, {7, 6, 5, 4},
  {4, 5, 1, 0}, {5, 6, 2, 1}, {7, 4, 0, 3} }

Definition at line 18 of file cube.c.

GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0}

Definition at line 13 of file cube.c.

GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0}

Definition at line 14 of file cube.c.

int n
Initial value:
 {  
  {-1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {1.0, 0.0, 0.0},
  {0.0, -1.0, 0.0}, {0.0, 0.0, 1.0}, {0.0, 0.0, -1.0} }

Definition at line 15 of file cube.c.

GLfloat v[8][3]

Definition at line 21 of file cube.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Mar 9 2017 04:57:50