[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47027] branches/soc-2012-swiss_cheese/ source/blender/gpu: Added GPU_utility.h
Jason Wilkins
Jason.A.Wilkins at gmail.com
Sat May 26 01:31:55 CEST 2012
Revision: 47027
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47027
Author: jwilkins
Date: 2012-05-25 23:31:55 +0000 (Fri, 25 May 2012)
Log Message:
-----------
Added GPU_utility.h
Contains GPU_STRING_MARKER macro for using the glStringMarkerGREMEDY function that lets send messages to an OpenGL debugger.
Modified Paths:
--------------
branches/soc-2012-swiss_cheese/source/blender/gpu/CMakeLists.txt
Added Paths:
-----------
branches/soc-2012-swiss_cheese/source/blender/gpu/GPU_utility.h
Modified: branches/soc-2012-swiss_cheese/source/blender/gpu/CMakeLists.txt
===================================================================
--- branches/soc-2012-swiss_cheese/source/blender/gpu/CMakeLists.txt 2012-05-25 17:58:15 UTC (rev 47026)
+++ branches/soc-2012-swiss_cheese/source/blender/gpu/CMakeLists.txt 2012-05-25 23:31:55 UTC (rev 47027)
@@ -66,6 +66,8 @@
GPU_draw.h
GPU_extensions.h
GPU_material.h
+ GPU_utility.h
+
intern/gpu_codegen.h
intern/gpu_deprecated.h
intern/gpu_immediate.h
Added: branches/soc-2012-swiss_cheese/source/blender/gpu/GPU_utility.h
===================================================================
--- branches/soc-2012-swiss_cheese/source/blender/gpu/GPU_utility.h (rev 0)
+++ branches/soc-2012-swiss_cheese/source/blender/gpu/GPU_utility.h 2012-05-25 23:31:55 UTC (rev 47027)
@@ -0,0 +1,62 @@
+/*
+ * ***** 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): Jason Wilkins
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+/** \file GPU_compatibility.h
+ * \ingroup gpu
+ */
+
+#ifndef __GPU_UTILITY_H__
+#define __GPU_UTILITY_H__
+
+
+
+#ifndef GPU_ENABLE_STRING_MARKER
+#define GPU_ENABLE_STRING_MARKER 1
+#endif
+
+#if GPU_ENABLE_STRING_MARKER
+#define GPU_STRING_MARKER(msg) \
+ if (GLEW_GREMEDY_string_marker) { \
+ glStringMarkerGREMEDY(sizeof(msg), msg); \
+ }
+#else
+#define GPU_STRING_MARKER(msg) ((void)0)
+#endif
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+
+
+#endif /* __GPU_UTILITY_H_ */
More information about the Bf-blender-cvs
mailing list