sphore 0.0.1
SPH openGL rendering engine

src/colour-ramp.h

Go to the documentation of this file.
00001 /********************************************************************
00002  * sphore - SPH Opengl Rendering Engine
00003  *
00004  * This file is (or was) part of sphore.
00005  * sphore comes with ABSOLUTELY NO WARRANTY.
00006  * This is free software; and you are welcome to redistribute
00007  * it under the terms of the GNU General Public License
00008  * (see LICENSE file for details) and the provision that
00009  * this notice remains intact. If you modify this file, please
00010  * note section 2a) of the GPLv2 states that:
00011  *
00012  *  a) You must cause the modified files to carry prominent notices
00013  *     stating that you changed the files and the date of any change.
00014  *
00015  * Copyright (C) 2011 James Wetter. All rights reserved.
00016  * Contact: wetter.j@gmail.com
00017  *
00018  ********************************************************************/
00019 
00025 #ifndef COLOUR_RAMP_H
00026 #define COLOUR_RAMP_H
00027 
00028 #include "sphore.h"
00029 
00035 typedef struct _colour_ramp colour_ramp_t;
00036 
00044 colour_ramp_t *colour_ramp_create ();
00045 
00051 void colour_ramp_destroy (colour_ramp_t * cr);
00052 
00066 SREbool
00067 colour_ramp_set (colour_ramp_t * cr, int n, float *controlPoints, float *red,
00068                  float *green, float *blue);
00069 
00079 void colour_ramp_get_rgb (colour_ramp_t * cr, float pos, float *red,
00080                           float *green, float *blue);
00081 
00082 void colour_ramp_onto_device (colour_ramp_t * cr);
00083 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines