Project

General

Profile

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