From b289453edc8c3f83824b2e2964779de0bad148a7 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 3 Aug 2006 20:53:10 +0200 Subject: remove OutputImages --- src/OutputImage.H | 23 -------------- src/OutputImage.cxx | 87 ----------------------------------------------------- 2 files changed, 110 deletions(-) (limited to 'src') diff --git a/src/OutputImage.H b/src/OutputImage.H index a7f01f5..8792eb6 100644 --- a/src/OutputImage.H +++ b/src/OutputImage.H @@ -50,27 +50,4 @@ class OutputImage { virtual int done_internal(); }; -class OutputImages { - private: - OutputImage **imgs; - int max_imgs; - - public: - OutputImages(); - - ~OutputImages(); - - int add(OutputImage *img); - - int remove(OutputImage *img); - - int init(int w, int h); - - int set_pixel(int x, char r, char g, char b); - - int next_line(); - - int done(); -}; - #endif diff --git a/src/OutputImage.cxx b/src/OutputImage.cxx index 52af058..f2e7296 100644 --- a/src/OutputImage.cxx +++ b/src/OutputImage.cxx @@ -90,90 +90,3 @@ OutputImage::done_internal() { return 0; } -#define MAX_OUTPUT_IMAGES 16 -OutputImages::OutputImages() { - imgs = (OutputImage **) calloc(MAX_OUTPUT_IMAGES, sizeof(OutputImage *)); - max_imgs = MAX_OUTPUT_IMAGES; -} - -OutputImages::~OutputImages() { - free(imgs); -} - -int -OutputImages::add(OutputImage *img) { - for (int i=0; iinit(w, h); - } - } - - return ret; -} - -int -OutputImages::set_pixel(int x, char r, char g, char b) { - int ret = 0; - - for (int i=0; iset_pixel(x, r, g, b); - } - } - - return ret; -} - -int -OutputImages::next_line() { - int ret = 0; - - for (int i=0; inext_line(); - } - } - - return ret; -} - -int -OutputImages::done() { - int ret = 0; - - for (int i=0; idone(); - } - } - - return ret; -} - -- cgit v1.2.3