From 6920735cff6b5b2ab9e4e6d8090fb48bba7d9ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 18 Feb 2015 12:07:48 +0100 Subject: Include SDL information in system info text. Adds bpy.app.sdl to expose SDL version information. When SDL is not available on a Linux system, certain Blender features are silently disabled (like joystick support in the BGE). This change is the first step towards making it more obvious why something isn't working. SDL information is exposed to Python via bpy.app.sdl, in the same way as OCIO and OIIO information is exposed. Generated system-info.txt contains SDL loading method (linked or dynamically loaded by Blender) and SDL version number. Reviewed by: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1112 --- source/blender/python/intern/bpy_app_sdl.h | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 source/blender/python/intern/bpy_app_sdl.h (limited to 'source/blender/python/intern/bpy_app_sdl.h') diff --git a/source/blender/python/intern/bpy_app_sdl.h b/source/blender/python/intern/bpy_app_sdl.h new file mode 100644 index 00000000000..e826a59de70 --- /dev/null +++ b/source/blender/python/intern/bpy_app_sdl.h @@ -0,0 +1,32 @@ +/* + * ***** 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. + * + * Contributor(s): Sergey Sharybin, Sybren A. Stuvel + * + * ***** END GPL LICENSE BLOCK ***** + */ + +/** \file blender/python/intern/bpy_app_sdl.h + * \ingroup pythonintern + */ + +#ifndef __BPY_APP_SDL_H__ +#define __BPY_APP_SDL_H__ + +PyObject *BPY_app_sdl_struct(void); + +#endif /* __BPY_APP_SDL_H__ */ -- cgit v1.2.3