diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-11-29 17:35:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-11-29 17:35:50 +0300 |
commit | 97dcbbf88612fd89e0643e75994b82294bdabb2c (patch) | |
tree | 481e5560bc00ea76862eb196552174f9795a6e4c /source/blender/makesrna/intern/rna_color.c | |
parent | 4fc369564a59aeb36ce7fcfd2c6ada43a2f80777 (diff) |
RNA
* Added more lamp properties. (patch by Michael Fox)
* Fix a number of warnings in the RNA code.
* Converted DOS line endings to UNIX.
* Added some information on defining ID structs, and fixed use
of "ID" inheritance for some non-ID structs.
* Added text on naming conventions to the RNA documentation, and
applied it to the current code.
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA#Naming_Conventions
Diffstat (limited to 'source/blender/makesrna/intern/rna_color.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_color.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c new file mode 100644 index 00000000000..ff20a83e51e --- /dev/null +++ b/source/blender/makesrna/intern/rna_color.c @@ -0,0 +1,50 @@ +/** + * $Id$ + * + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * Contributor(s): Blender Foundation (2008). + * + * ***** END GPL LICENSE BLOCK ***** + */ + +#include <stdlib.h> +#include <stdio.h> + +#include "RNA_define.h" +#include "RNA_types.h" + +#include "DNA_color_types.h" + +#ifdef RNA_RUNTIME + +#else + +void RNA_def_color(BlenderRNA *brna) +{ + StructRNA *srna; + PropertyRNA *prop; + + srna= RNA_def_struct(brna, "CurveMapPoint", NULL, "CurveMapPoint"); + + srna= RNA_def_struct(brna, "CurveMap", NULL, "CurveMap"); + + srna= RNA_def_struct(brna, "CurveMapping", NULL, "CurveMapping"); +} + +#endif + |