summaryrefslogtreecommitdiff
path: root/Examples/ocaml/shapes/example.h
blob: 68cb6ee3ee7602fc8ab82951e3252d9bfc51d375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef EXAMPLE_H
#define EXAMPLE_H

class shape {
public:
  virtual ~shape();
  virtual bool cover( double x, double y ); // does this shape cover this point?
};

class volume {
public:
  virtual double depth( double x, double y );
  virtual ~volume();
};

extern void draw_shape_coverage( shape *s, int div_x, int div_y );
extern void draw_depth_map( volume *v, int div_x, int div_y );

#endif//EXAMPLE_H