Functions | Variables
draw_object.c File Reference
#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"
Include dependency graph for backup/examples/modeTest/draw_object.c:

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}

Function Documentation

int draw ( ObjectData_T object,
int  objectnum 
)

Definition at line 43 of file backup/examples/modeTest/draw_object.c.

static int draw_object ( char *  name,
double  gl_para[16] 
) [static]

Definition at line 62 of file backup/examples/modeTest/draw_object.c.

static void init_lights ( void  ) [static]

Variable Documentation

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

Definition at line 30 of file backup/examples/modeTest/draw_object.c.

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

Definition at line 31 of file backup/examples/modeTest/draw_object.c.

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

Definition at line 34 of file backup/examples/modeTest/draw_object.c.

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

Definition at line 36 of file backup/examples/modeTest/draw_object.c.

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

Definition at line 32 of file backup/examples/modeTest/draw_object.c.

GLfloat mat_flash_shiny1[] = {25.0}

Definition at line 35 of file backup/examples/modeTest/draw_object.c.

GLfloat mat_flash_shiny2[] = {50.0}

Definition at line 37 of file backup/examples/modeTest/draw_object.c.

GLfloat mat_shininess1[] = {50.0}

Definition at line 26 of file backup/examples/modeTest/draw_object.c.

GLfloat mat_shininess2[] = {25.0}

Definition at line 28 of file backup/examples/modeTest/draw_object.c.

GLfloat mat_specular1[] = {0.2, 0.0, 0.0, 1.0}

Definition at line 25 of file backup/examples/modeTest/draw_object.c.

GLfloat mat_specular2[] = {0.0, 0.0, 0.2, 1.0}

Definition at line 27 of file backup/examples/modeTest/draw_object.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


ar_recog
Author(s): Graylin Trevor Jay and Christopher Crick
autogenerated on Fri Jan 25 2013 12:15:00