Functions | Variables
draw_object.c File Reference
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <strings.h>
#include <GL/gl.h>
#include <GL/glut.h>
#include <AR/gsub.h>
#include <AR/ar.h>
#include "draw_object.h"
#include "object.h"
Include dependency graph for backup/examples/optical/draw_object.c:

Go to the source code of this file.

Functions

int draw (ObjectData_T *object, int objectnum, int dispmode)
static int draw_object (char *name, double gl_para[16], int dispmode)
void init_lights ()

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,
int  dispmode 
)

Definition at line 44 of file backup/examples/optical/draw_object.c.

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

Definition at line 63 of file backup/examples/optical/draw_object.c.

void init_lights ( void  )

Definition at line 156 of file backup/examples/optical/draw_object.c.


Variable Documentation

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

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

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

Definition at line 33 of file backup/examples/optical/draw_object.c.

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

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

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

Definition at line 38 of file backup/examples/optical/draw_object.c.

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

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

GLfloat mat_flash_shiny1[] = {25.0}

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

GLfloat mat_flash_shiny2[] = {50.0}

Definition at line 39 of file backup/examples/optical/draw_object.c.

GLfloat mat_shininess1[] = {50.0}

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

GLfloat mat_shininess2[] = {25.0}

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

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

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

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

Definition at line 29 of file backup/examples/optical/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