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

model.cpp File Reference

#include "model.h"
#include <gfx/gl.h>

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])
void draw_capped_cylinder (double l, double r, int quality)
 Draw a capped cylinder aligned along the z axis.


Detailed Description

Implementation of 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