swig/Examples/ocaml/shapes/example.h
2004-11-03 17:11:20 +00:00

18 lines
388 B
C++

#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 );
};
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