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

◆ display()

void display ( void  )

Definition at line 40 of file cube.c.

◆ drawBox()

void drawBox ( void  )

Definition at line 24 of file cube.c.

◆ init()

void init ( void  )

Definition at line 48 of file cube.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 86 of file cube.c.

Variable Documentation

◆ faces

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.

◆ light_diffuse

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

Definition at line 13 of file cube.c.

◆ light_position

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

Definition at line 14 of file cube.c.

◆ n

GLfloat n[6][3]
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.

◆ v

GLfloat v[8][3]

Definition at line 21 of file cube.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43