source: abuse/tags/pd/abuse/inc/points.hpp @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 12 years ago
  • Imported original public domain release, for future reference.
File size: 497 bytes
Line 
1#ifndef __POINTS_HPP_
2#define __POINTS_HPP_
3#include <stdio.h>
4#include <stdlib.h>
5#include "jmalloc.hpp"
6#include "specs.hpp"
7
8class point_list
9{
10public :
11  unsigned char tot;
12  unsigned char *data;
13  point_list(unsigned char how_many, unsigned char *Data);
14  point_list() { tot=0; data=NULL; }
15  point_list(bFILE *fp);
16  void save(bFILE *fp);
17  long size() { return 1+2*tot; }
18  point_list *copy() { return new point_list(tot,data); }
19  ~point_list() { if (tot) { jfree(data); } }
20} ;
21
22#endif
23
24
Note: See TracBrowser for help on using the repository browser.