From 0b3608c819b809ae599844bb9188c59564620868 Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 28 Dec 2017 01:41:24 +0100 Subject: Remove previous impl. files Signed-off-by: pacien --- include/blender/canvas.h | 79 ------------------------------------------------ include/blender/color.h | 46 ---------------------------- 2 files changed, 125 deletions(-) delete mode 100644 include/blender/canvas.h delete mode 100644 include/blender/color.h (limited to 'include') diff --git a/include/blender/canvas.h b/include/blender/canvas.h deleted file mode 100644 index aae217d..0000000 --- a/include/blender/canvas.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef UPEM_MORPHING_CANVAS -#define UPEM_MORPHING_CANVAS - -/** - * File: canvas.h - * - * See also: - * Freedom, according to Bob Ross - */ - -#include -#include "common/geom.h" -#include "color.h" - -/** - * Type: Canvas - * Represents a fixed size RGBa pixel matrix. - */ -typedef struct { - MLV_Image *mlv; -} Canvas; - -/** - * Function: canvas_init - * Initialises a canvas of the given size - * - * Parameters: - * *canvas - the canvas to initialise - * width - the width in pixels - * height - the height in pixels - */ -void canvas_init(Canvas *canvas, IntVector width, IntVector height); - -/** - * Function: canvas_free - * Frees all memory allocated to a canvas. - * - * Parameters: - * *canvas - the canvas to destroy - */ -void canvas_free(Canvas *canvas); - -/** - * Function: canvas_set_pixel - * Sets the pixel colour at the given coordinates. - * - * Parameters: - * *canvas - the canvas to alter - * position - the cartesian coordinates of the pixel to set - * color - the new colour to set - */ -void canvas_set_pixel(Canvas *canvas, CartesianVector position, Color color); - -/** - * Function: canvas_get_pixel - * Returns the colour of the pixel at the given position. - * - * Parameters: - * *canvas - the base canvas - * position - the position in cartesian coordinates - * - * Returns: - * The colour of the requested pixel - */ -Color canvas_get_pixel(Canvas *canvas, CartesianVector position); - -/** - * Function: canvas_get_dim - * Returns the size (in pixels) of the given canvas. - * - * Parameters: - * *canvas - the canvas - * - * Returns: - * The size of the canvas - */ -CartesianVector canvas_get_dim(Canvas *canvas); - -#endif diff --git a/include/blender/color.h b/include/blender/color.h deleted file mode 100644 index 1fef2cf..0000000 --- a/include/blender/color.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef UPEM_MORPHING_COLOR -#define UPEM_MORPHING_COLOR - -/** - * File: color.h - * - * See also: - * A rainbow - */ - -#include -#include - -/** - * Type: ColorComponent - * Represents a single colour component of 32-bits RGBa tuple. - */ -typedef uint8_t ColorComponent; - -/** - * Type: ColorPixel - * Represents a single RGBa coloured pixel. - * Compatible with the libMLV representation. - */ -typedef union { - struct { - ColorComponent r, g, b, a; - } rgba; - - MLV_Color mlv; -} Color; - -/** - * Function: color_equals - * Compares the supplied colors. - * - * Parameters: - * c1 - the first color - * c2 - the second color - * - * Returns: - * T(c1 is the same color as c2) - */ -bool color_equals(Color c1, Color c2); - -#endif -- cgit v1.2.3