[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38005] branches/soc-2011-onion/source/ blender/editors/uvedit: some basic structs for UV manager, will work on C++ on this
Antony Riakiotakis
kalast at gmail.com
Fri Jul 1 10:27:52 CEST 2011
Revision: 38005
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38005
Author: psy-fi
Date: 2011-07-01 08:27:52 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
some basic structs for UV manager, will work on C++ on this
Modified Paths:
--------------
branches/soc-2011-onion/source/blender/editors/uvedit/CMakeLists.txt
Added Paths:
-----------
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_island_manager.cpp
Removed Paths:
-------------
branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_island_manager.c
Modified: branches/soc-2011-onion/source/blender/editors/uvedit/CMakeLists.txt
===================================================================
--- branches/soc-2011-onion/source/blender/editors/uvedit/CMakeLists.txt 2011-07-01 07:30:33 UTC (rev 38004)
+++ branches/soc-2011-onion/source/blender/editors/uvedit/CMakeLists.txt 2011-07-01 08:27:52 UTC (rev 38005)
@@ -41,7 +41,7 @@
uvedit_ops.c
uvedit_parametrizer.c
uvedit_unwrap_ops.c
- uvedit_island_manager.c
+ uvedit_island_manager.cpp
uvedit_intern.h
uvedit_parametrizer.h
)
Deleted: branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_island_manager.c
===================================================================
Added: branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_island_manager.cpp
===================================================================
--- branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_island_manager.cpp (rev 0)
+++ branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_island_manager.cpp 2011-07-01 08:27:52 UTC (rev 38005)
@@ -0,0 +1,60 @@
+/*
+ * $Id: uvedit_buttons.c 37125 2011-06-03 14:14:32Z jwilkins $
+ *
+ * ***** 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.
+ *
+ * Contributor(s): Antony Riakiotakis, Blender Foundation, 2002-2009
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file blender/editors/uvedit/uvedit_draw.c
+ * \ingroup eduv
+ */
+
+typedef struct UVIslandManager {
+
+}UVIslandManager;
+
+
+
+typedef struct UVIsland {
+ float x_pos;
+ float y_pos;
+ float width;
+ float height;
+} UVIsland;
+
+
+/* typical C object oriented wanna-be. Following container design pattern here */
+typedef struct UVIslandContainer {
+ struct UVIsland parent;
+ struct UVIsland *children;
+}UVIslandContainer;
+
+
+static UVIslandManagerState _island_manager_state = NULL;
+
+void initializeIslandManager()
+{
+ if(!UVIslandManager){
+
+ }
+}
\ No newline at end of file
Property changes on: branches/soc-2011-onion/source/blender/editors/uvedit/uvedit_island_manager.cpp
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the Bf-blender-cvs
mailing list