SO3Engine
SO3OSX.h
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OpenSpace3D
4For the latest info, see http://www.openspace3d.com
5
6Copyright (c) 2012 I-maginer
7
8This program is free software; you can redistribute it and/or modify it under
9the terms of the GNU Lesser General Public License as published by the Free Software
10Foundation; either version 2 of the License, or (at your option) any later
11version.
12
13This program is distributed in the hope that it will be useful, but WITHOUT
14ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public License along with
18this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20http://www.gnu.org/copyleft/lesser.txt
21
22-----------------------------------------------------------------------------
23*/
24
32#ifndef __SO3_OSX_H__
33#define __SO3_OSX_H__
34
35#include <stdio.h>
36#include <dlfcn.h>
37
38// Dll exporting symbols (SO3Engine.dll build), or importing (SO3 plugins)?
39#ifdef SO3_STATIC_BUILD
40# define _SO3_Export
41#else
42# ifdef SO3_NON_CLIENT_BUILD
43# define _SO3_Export __attribute__ ((visibility ("default")))
44# else
45# define _SO3_Export
46# endif
47#endif
48
49#define __stdcall
50typedef unsigned int UINT;
51typedef void* HCURSOR;
52
53// ANDROID dynamic library loading and unloading functions.
54// see SPlugin class
55#define SO3_PLUGIN_INSTANCE void*
56#define SO3_PLUGIN_LOAD(a) dlopen(a,RTLD_LAZY)
57#define SO3_PLUGIN_UNLOAD(a) dlclose(a)
58#define SO3_PLUGIN_GET_SYMBOL(a,b) dlsym(a,b)
59#define SO3_PLUGIN_ERROR() dlerror()
60
61#define WPARAM SCOL_PTR_TYPE
62#define LPARAM SCOL_PTR_TYPE
63
64#define WM_KEYDOWN 0x0100
65#define WM_KEYUP 0x0101
66#define WM_CHAR 0x0102
67#define WM_SYSKEYDOWN 0x0104
68#define WM_SYSKEYUP 0x0105
69#define WM_SYSCHAR 0x0106
70#define WM_IME_KEYDOWN 0x0290
71#define WM_IME_KEYUP 0x0291
72
73#if defined(_DEBUG)
74 //# define SO3_DEBUG 1
75#endif
76
77#endif
unsigned int UINT
Definition SO3OSX.h:50
void * HCURSOR
Definition SO3OSX.h:51