SO3Engine
SO3IOS.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_IOS_H__
33#define __SO3_IOS_H__
34
35#include <errno.h>
36#include <stdio.h>
37#include <dlfcn.h>
38
39// Dll exporting symbols (SO3Engine.dll build), or importing (SO3 plugins)?
40#ifdef SO3_STATIC_BUILD
41# define _SO3_Export
42#else
43# ifdef SO3_NON_CLIENT_BUILD
44# define _SO3_Export __attribute__ ((visibility ("default")))
45# else
46# define _SO3_Export
47# endif
48#endif
49
50#define __stdcall
51typedef unsigned int UINT;
52typedef long LONG;
53typedef void* HCURSOR;
54
55#define WPARAM SCOL_PTR_TYPE
56#define LPARAM SCOL_PTR_TYPE
57
58// ANDROID dynamic library loading and unloading functions.
59// see SPlugin class
60#define SO3_PLUGIN_INSTANCE void*
61#define SO3_PLUGIN_LOAD(a) dlopen(a,RTLD_LAZY)
62#define SO3_PLUGIN_UNLOAD(a) dlclose(a)
63#define SO3_PLUGIN_GET_SYMBOL(a,b) dlsym(a,b)
64#define SO3_PLUGIN_ERROR() dlerror()
65
66
67#define WM_KEYDOWN 0x0100
68#define WM_KEYUP 0x0101
69#define WM_CHAR 0x0102
70#define WM_SYSKEYDOWN 0x0104
71#define WM_SYSKEYUP 0x0105
72#define WM_SYSCHAR 0x0106
73#define WM_IME_KEYDOWN 0x0290
74#define WM_IME_KEYUP 0x0291
75
76#if defined(_DEBUG)
77 //# define SO3_DEBUG 1
78#endif
79
80#endif
long LONG
Definition SO3IOS.h:52
unsigned int UINT
Definition SO3IOS.h:51
void * HCURSOR
Definition SO3IOS.h:53