[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48710] branches/soc-2012-swiss_cheese/ intern: Adding the beginnings of a touch library.

Nicholas Rishel rishel.nick at gmail.com
Sat Jul 7 09:43:56 CEST 2012


Revision: 48710
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48710
Author:   nicholas_rishel
Date:     2012-07-07 07:43:56 +0000 (Sat, 07 Jul 2012)
Log Message:
-----------
Adding the beginnings of a touch library.

These files are not linked into Blender yet, so this commit should not affect compiling.

Added Paths:
-----------
    branches/soc-2012-swiss_cheese/intern/touch/
    branches/soc-2012-swiss_cheese/intern/touch/TOUCH_API.h
    branches/soc-2012-swiss_cheese/intern/touch/touch_types.h

Added: branches/soc-2012-swiss_cheese/intern/touch/TOUCH_API.h
===================================================================
--- branches/soc-2012-swiss_cheese/intern/touch/TOUCH_API.h	                        (rev 0)
+++ branches/soc-2012-swiss_cheese/intern/touch/TOUCH_API.h	2012-07-07 07:43:56 UTC (rev 48710)
@@ -0,0 +1,51 @@
+/*
+ * ***** 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) 2012 Blender Foundation.
+ * All rights reserved.
+ *
+ * The Original Code is: all of this file.
+ *
+ * Contributor(s): Nicholas Rishel
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file TOUCH_API.h
+ *  \ingroup TOUCH
+ */
+
+#ifndef __TOUCH_API_H__
+#define __TOUCH_API_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#inlude STR_String.h
+
+extern void TOUCH_InitManager();
+
+extern void TOUCH_RegisterContext(const STR_String context);
+
+extern void TOUCH_AddEvent();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TOUCH_API_H__ */

Added: branches/soc-2012-swiss_cheese/intern/touch/touch_types.h
===================================================================
--- branches/soc-2012-swiss_cheese/intern/touch/touch_types.h	                        (rev 0)
+++ branches/soc-2012-swiss_cheese/intern/touch/touch_types.h	2012-07-07 07:43:56 UTC (rev 48710)
@@ -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) 2012 Blender Foundation.
+ * All rights reserved.
+ *
+ * The Original Code is: all of this file.
+ *
+ * Contributor(s): Nicholas Rishel
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file touch_types.h
+ *  \ingroup TOUCH
+ */
+
+#ifndef __TOUCH_TYPES_H__
+#define __TOUCH_TYPES_H__
+
+#include STR_String.h
+
+typedef struct touchRegisteredContext {
+	STR_String AreaType;
+	SRT_String RegionType;
+} touchRegisteredContext;
+
+#endif // TOUCH_TYPES_H




More information about the Bf-blender-cvs mailing list