summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/OutputImage.H24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/OutputImage.H b/src/OutputImage.H
index edbb637..443f6f6 100644
--- a/src/OutputImage.H
+++ b/src/OutputImage.H
@@ -7,34 +7,26 @@
#ifndef OUTPUTIMAGE_H
#define OUTPUTIMAGE_H
-
class OutputImage {
private:
int initialized;
+ protected:
+ int W, H, line;
+
+ virtual int init_internal(int w1, int h1) {return 0;};
+ virtual int set_pixel_internal(int x, int r, int g, int b) {return 0;};
+ virtual int next_line_internal() {return 0;};
+ virtual int done_internal() {return 0;};
+
public:
OutputImage();
-
virtual ~OutputImage() {};
virtual int init(int w1, int h1);
-
int set_pixel(int x, int r, int g, int b);
-
int next_line();
-
int done();
-
- protected:
- int W, H, line;
-
- virtual int init_internal(int w1, int h1) {return 0;};
-
- virtual int set_pixel_internal(int x, int r, int g, int b) {return 0;};
-
- virtual int next_line_internal() {return 0;};
-
- virtual int done_internal() {return 0;};
};
#endif