[Bf-blender-cvs] [075f6d4] particles_refactor: Skeleton files for particle buffer types.

Lukas Tönne noreply at git.blender.org
Tue Apr 22 12:05:11 CEST 2014


Commit: 075f6d4cf4600327dad33862d73b8e42a207eaff
Author: Lukas Tönne
Date:   Fri May 24 07:55:10 2013 +0200
https://developer.blender.org/rB075f6d4cf4600327dad33862d73b8e42a207eaff

Skeleton files for particle buffer types.

===================================================================

M	source/blender/CMakeLists.txt
A	source/blender/blenkernel/BKE_nparticle.h
M	source/blender/blenkernel/CMakeLists.txt
A	source/blender/blenkernel/intern/nparticle.c
A	source/blender/makesdna/DNA_nparticle_types.h

===================================================================

diff --git a/source/blender/CMakeLists.txt b/source/blender/CMakeLists.txt
index 3892996..2a28a78 100644
--- a/source/blender/CMakeLists.txt
+++ b/source/blender/CMakeLists.txt
@@ -61,6 +61,7 @@ set(SRC_DNA_INC
 	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_modifier_types.h
 	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_nla_types.h
 	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_node_types.h
+	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_nparticle_types.h
 	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_object_fluidsim.h
 	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_object_force.h
 	${CMAKE_CURRENT_SOURCE_DIR}/makesdna/DNA_object_types.h
diff --git a/source/blender/blenkernel/BKE_nparticle.h b/source/blender/blenkernel/BKE_nparticle.h
new file mode 100644
index 0000000..d1bbbe7
--- /dev/null
+++ b/source/blender/blenkernel/BKE_nparticle.h
@@ -0,0 +1,36 @@
+/*
+ * ***** 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
+ * All rights reserved.
+ *
+ * The Original Code is: all of this file.
+ *
+ * Contributor(s): none yet.
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+#ifndef __BKE_NPARTICLE_H__
+#define __BKE_NPARTICLE_H__
+
+/** \file BKE_nparticle.h
+ *  \ingroup bke
+ */
+
+struct bParticleBuffer;
+
+#endif
diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt
index 749a5eb..46287d2 100644
--- a/source/blender/blenkernel/CMakeLists.txt
+++ b/source/blender/blenkernel/CMakeLists.txt
@@ -124,6 +124,7 @@ set(SRC
 	intern/multires.c
 	intern/nla.c
 	intern/node.c
+	intern/nparticle.c
 	intern/object.c
 	intern/object_deform.c
 	intern/object_dupli.c
@@ -228,6 +229,7 @@ set(SRC
 	BKE_multires.h
 	BKE_nla.h
 	BKE_node.h
+	BKE_nparticle.h
 	BKE_object.h
 	BKE_object_deform.h
 	BKE_ocean.h
diff --git a/source/blender/blenkernel/intern/nparticle.c b/source/blender/blenkernel/intern/nparticle.c
new file mode 100644
index 0000000..90a52d7
--- /dev/null
+++ b/source/blender/blenkernel/intern/nparticle.c
@@ -0,0 +1,39 @@
+/*
+ * ***** 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
+ * All rights reserved.
+ *
+ * The Original Code is: all of this file.
+ *
+ * Contributor(s): none yet.
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file blender/blenkernel/intern/nparticle.c
+ *  \ingroup bke
+ */
+
+#include "MEM_guardedalloc.h"
+
+#include "BLI_pagedbuffer.h"
+
+#include "DNA_nparticle_types.h"
+
+#include "BKE_nparticle.h"
+
diff --git a/source/blender/makesdna/DNA_nparticle_types.h b/source/blender/makesdna/DNA_nparticle_types.h
new file mode 100644
index 0000000..8f675d0
--- /dev/null
+++ b/source/blender/makesdna/DNA_nparticle_types.h
@@ -0,0 +1,42 @@
+/*
+ * ***** 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
+ * All rights reserved.
+ *
+ * The Original Code is: all of this file.
+ *
+ * Contributor(s): none yet.
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file DNA_nparticle_types.h
+ *  \ingroup DNA
+ */
+
+#ifndef __DNA_NPARTICLE_TYPES_H__
+#define __DNA_NPARTICLE_TYPES_H__
+
+#include "DNA_pagedbuffer_types.h"
+
+typedef struct bParticleBuffer {
+	bPagedBuffer data;
+} bParticleBuffer;
+
+#endif
+




More information about the Bf-blender-cvs mailing list