[go: up one dir, main page]

Menu

[6ebdcd]: / src / code / OSDL.h  Maximize  Restore  History

Download this file

126 lines (108 with data), 4.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
* Copyright (C) 2003-2013 Olivier Boudeville
*
* This file is part of the OSDL library.
*
* The OSDL library is free software: you can redistribute it and/or modify
* it under the terms of either the GNU Lesser General Public License or
* the GNU General Public License, as they are published by the Free Software
* Foundation, either version 3 of these Licenses, or (at your option)
* any later version.
*
* The OSDL library 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 Lesser General Public License and the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License and of the GNU General Public License along with the OSDL library.
* If not, see <http://www.gnu.org/licenses/>.
*
* Author: Olivier Boudeville (olivier.boudeville@esperide.com)
*
*/
#ifndef OSDL_H_
#define OSDL_H_
/*
* This is the OSDL library, a free portable high-level open-source C++
* library for multimedia and game programming.
*
* More informations available at http://osdl.sourceforge.net/OSDL-latest/
*
*/
/**
* Main header file for OSDL Project (Object-oriented Simple DirectMedia Layer,
* see http://osdl.sourceforge.net).
*
* Add below all include files corresponding to OSDL modules which are to be
* explicitly exported in OSDL's library.
*
* Each top-level module may include others modules as well, and so on.
*
*/
/**
* A OSDL-using application or library may be compiled against OSDL header files
* of a particular version, and dynamically linked with a OSDL library of a
* different version.
*
* Even if retro-compatibility is searched after, necessary API changes often
* break backward compatibility, which can be determined thanks to interface
* versions and ages, according to Libtool conventions.
*
* To know to which OSDL version a set of installed headers corresponds, the
* OSDLHeaderVersion.h file (generated at configure time) should be read, for
* the actualOSDLHeaderLibtoolVersion variable. Including only OSDL.h is enough
* to have everything from OSDL available.
*
* The OSDLConfig.h file (generated at configure time) cannot be read for
* version informations, as it is on purpose not installed, to avoid clashes.
*
* To know to which OSDL version an installed library corresponds, its
* OSDL::GetVersion function should be called. It is defined in
* trunk/src/code/basic/OSDLBasic.h, and retrieves the version information which
* was defined in its OSDL_LIBTOOL_VERSION when it was compiled.
*
* On Windows, the OSDLConfig.h file in the sources is used, it includes in turn
* OSDLConfigForWindows.h which have hardcoded version values.
*
* On UNIX, OSDLConfig.h is generated at configure time and overwrites the
* default OSDLHeaderVersion.h file in the sources.
*
* A OSDL-using program can make use of the CHECK_OSDL_VERSIONS (defined in
* trunk/src/code/basic/OSDLBasic.h) to check automatically whether versions of
* library and headers match.
*
* It the test fails (header and library versions are not compatible), at
* runtime the issue will be detected thanks to the macro, and a message will
* explain the situation, ex:
* """
* Fatal error: OSDL is performing an emergency shutdown since an abnormal
* situation occured. OSDL library version currently linked (Libtool version:
* current interface number = 0, current revision number = 5, interface age = 0)
* is not compatible with the one read from the OSDL header files used to
* compile this application (Libtool version: current interface number = 1,
* current revision number = 6, interface age = 0), aborting.
* """
*
* @see OSDLConfig.h, OSDLConfigForWindows.h, and basic/OSDLBasic.h in the
* common module for more information, including the macro definition.
*
* @see test/basic/testOSDLBasic.cc for the macro use.
*
*/
// Only defined and set to 1 when cross-compiling for the Nintendo DS:
#if defined(OSDL_ARCH_NINTENDO_DS) && OSDL_ARCH_NINTENDO_DS == 1
// So that DS-specific defines are readily available to the user:
#include "OSDLConfigForNintendoDS.h"
#endif // defined(CEYLAN_ARCH_NINTENDO_DS) && CEYLAN_ARCH_NINTENDO_DS == 1
// Include below all header files to be exported for OSDL users.
#include "OSDLAudioIncludes.h"
#include "OSDLBasicIncludes.h"
#include "OSDLDataIncludes.h"
#include "OSDLEngineIncludes.h"
#include "OSDLEventsIncludes.h"
#include "OSDLVideoIncludes.h"
// Help the user code staying clean:
#include "OSDLIncludeCorrecter.h"
#endif // OSDL_H_