diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-08-03 20:53:10 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-08-03 20:53:10 +0200 |
commit | b289453edc8c3f83824b2e2964779de0bad148a7 (patch) | |
tree | c49ec9d4caac00f173f2babe2f5ac7bcfbe0ac00 /src/OutputImage.cxx | |
parent | 641efabfea98270beef8b7f8a472b8d9e6f0c3aa (diff) |
remove OutputImages
Diffstat (limited to 'src/OutputImage.cxx')
-rw-r--r-- | src/OutputImage.cxx | 87 |
1 files changed, 0 insertions, 87 deletions
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; i<max_imgs;i++) { - if (imgs[i] == NULL) { - imgs[i] = img; - return 0; - } - } - - return 1; -} - - -int -OutputImages::remove(OutputImage *img) { - for (int i=0; i<max_imgs;i++) { - if (imgs[i] == img) { - imgs[i] = NULL; - return 0; - } - } - - return 1; -} - -int -OutputImages::init(int w, int h) { - int ret = 0; - - for (int i=0; i<max_imgs;i++) { - if (imgs[i]) { - ret += imgs[i]->init(w, h); - } - } - - return ret; -} - -int -OutputImages::set_pixel(int x, char r, char g, char b) { - int ret = 0; - - for (int i=0; i<max_imgs;i++) { - if (imgs[i]) { - ret += imgs[i]->set_pixel(x, r, g, b); - } - } - - return ret; -} - -int -OutputImages::next_line() { - int ret = 0; - - for (int i=0; i<max_imgs;i++) { - if (imgs[i]) { - ret += imgs[i]->next_line(); - } - } - - return ret; -} - -int -OutputImages::done() { - int ret = 0; - - for (int i=0; i<max_imgs;i++) { - if (imgs[i]) { - ret += imgs[i]->done(); - } - } - - return ret; -} - |