00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00021 #ifndef R3DDISPLAYDEVICE
00022 #define R3DDISPLAYDEVICE
00023
00024 #include <stdio.h>
00025 #include "FileRenderer.h"
00026
00028 class R3dDisplayDevice : public FileRenderer {
00029 private:
00032 int objLegal;
00033
00037 float old_mat_shininess;
00038 float old_mat_opacity;
00039 float old_mat_specular;
00040 int mat_on;
00041
00042 void reset_vars(void);
00043 void write_materials(void);
00044 void close_materials(void);
00045
00046 protected:
00047
00048 void comment(const char *);
00049 void cylinder(float *, float *, float, int);
00050 void line(float *, float *);
00051 void point(float *);
00052 void sphere(float *);
00053 void text(float *pos, float size, float thickness, const char *str);
00054 void triangle(const float *, const float *, const float *,
00055 const float *, const float *, const float *);
00056 void tricolor(const float * xyz1, const float * xyz2, const float * xyz3,
00057 const float * n1, const float * n2, const float * n3,
00058 const float *c1, const float *c2, const float *c3);
00059
00060 public:
00061 R3dDisplayDevice(void);
00062 virtual ~R3dDisplayDevice(void);
00063 void write_header(void);
00064 void write_trailer(void);
00065 };
00066
00067 #endif
00068