Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

model.h File Reference

#include "utils.h"
#include "material.h"

Go to the source code of this file.

Classes

class  Model

Defines

#define CUBE_FRONT   0
#define CUBE_BACK   1
#define CUBE_LEFT   2
#define CUBE_RIGHT   3
#define CUBE_TOP   4
#define CUBE_BOTTOM   5

Functions

void draw_wire_cube (const Vec3 &min, const Vec3 &max, const Vec3f &color)
void draw_solid_cube (const Vec3 &min, const Vec3 &max, const bool draw_faces[6]=NULL)
void draw_capped_cylinder (double length, double radius, int quality=3)
 Draw a capped cylinder aligned along the z axis.


Detailed Description

Header for Model class.

Copyright 2003 by GameBuilders. Distributed WITHOUT WARRANTY under the GPL. See COPYING for details.


Function Documentation

void draw_solid_cube const Vec3 &  min,
const Vec3 &  max,
const bool  draw_faces[6] = NULL
 

Draw a solid axis-aligned box whose opposite corners are given by the points 'min' and 'max'. Only draw the faces specified by draw_faces.

void draw_wire_cube const Vec3 &  min,
const Vec3 &  max,
const Vec3f &  color
 

Draw a wireframe axis-aligned box whose opposite corners are given by the points 'min' and 'max', in the color 'color'.


Generated on Sat Mar 13 15:00:10 2004 by doxygen 1.3.5