#include <stdio.h>#include <string.h>#include <strings.h>#include <GL/gl.h>#include <GL/glut.h>#include <AR/gsub.h>#include "draw_object.h"#include "object.h"
Go to the source code of this file.
Functions | |
| int | draw (ObjectData_T *object, int objectnum) |
| static int | draw_object (char *name, double gl_para[16]) |
| static void | init_lights (void) |
Variables | |
| GLfloat | mat_ambient1 [] = {1.0, 0.0, 0.0, 1.0} |
| GLfloat | mat_ambient2 [] = {0.0, 0.0, 1.0, 1.0} |
| GLfloat | mat_flash1 [] = {1.0, 0.0, 0.0, 1.0} |
| GLfloat | mat_flash2 [] = {0.0, 0.0, 1.0, 1.0} |
| GLfloat | mat_flash_ambient1 [] = {0.0, 1.0, 0.0, 1.0} |
| GLfloat | mat_flash_shiny1 [] = {25.0} |
| GLfloat | mat_flash_shiny2 [] = {50.0} |
| GLfloat | mat_shininess1 [] = {50.0} |
| GLfloat | mat_shininess2 [] = {25.0} |
| GLfloat | mat_specular1 [] = {0.2, 0.0, 0.0, 1.0} |
| GLfloat | mat_specular2 [] = {0.0, 0.0, 0.2, 1.0} |
| static int draw | ( | ObjectData_T * | object, |
| int | objectnum | ||
| ) |
Definition at line 43 of file examples/modeTest/draw_object.c.
| static int draw_object | ( | char * | name, |
| double | gl_para[16] | ||
| ) | [static] |
Definition at line 62 of file examples/modeTest/draw_object.c.
| static void init_lights | ( | void | ) | [static] |
Definition at line 137 of file examples/modeTest/draw_object.c.
| GLfloat mat_ambient1[] = {1.0, 0.0, 0.0, 1.0} |
Definition at line 30 of file examples/modeTest/draw_object.c.
| GLfloat mat_ambient2[] = {0.0, 0.0, 1.0, 1.0} |
Definition at line 31 of file examples/modeTest/draw_object.c.
| GLfloat mat_flash1[] = {1.0, 0.0, 0.0, 1.0} |
Definition at line 34 of file examples/modeTest/draw_object.c.
| GLfloat mat_flash2[] = {0.0, 0.0, 1.0, 1.0} |
Definition at line 36 of file examples/modeTest/draw_object.c.
| GLfloat mat_flash_ambient1[] = {0.0, 1.0, 0.0, 1.0} |
Definition at line 32 of file examples/modeTest/draw_object.c.
| GLfloat mat_flash_shiny1[] = {25.0} |
Definition at line 35 of file examples/modeTest/draw_object.c.
| GLfloat mat_flash_shiny2[] = {50.0} |
Definition at line 37 of file examples/modeTest/draw_object.c.
| GLfloat mat_shininess1[] = {50.0} |
Definition at line 26 of file examples/modeTest/draw_object.c.
| GLfloat mat_shininess2[] = {25.0} |
Definition at line 28 of file examples/modeTest/draw_object.c.
| GLfloat mat_specular1[] = {0.2, 0.0, 0.0, 1.0} |
Definition at line 25 of file examples/modeTest/draw_object.c.
| GLfloat mat_specular2[] = {0.0, 0.0, 0.2, 1.0} |
Definition at line 27 of file examples/modeTest/draw_object.c.