home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Amiga
/
Jeux
/
demos
/
crystalPPC.lha
/
viewpoly.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-15
|
546b
|
31 lines
#ifndef VIEWPOLY_H
#define VIEWPOLY_H
#ifndef MATH3D_H
#include "math3d.h"
#endif
class ViewPolygon
{
private:
Vector2* vertices;
int num_vertices, max_vertices;
Box bbox; // Bounding box
public:
ViewPolygon (int num);
~ViewPolygon ();
void add_vertex (float x, float y);
void add_vertex (Vector2& v) { add_vertex (v.x, v.y); }
Box& get_bounding_box () { return bbox; }
int get_num_vertices () { return num_vertices; }
Vector2* get_vertices () { return vertices; }
void dump (char* name);
};
#endif /*VIEWPOLY_H*/