Simple Image Loading LibrarY 0.1.0
SILLYBase.h
1/***********************************************************************
2 filename: SILLYBase.h
3 created: 2006/06/10
4 author: Olivier Delannoy
5
6 purpose: Common header for the SILLY library
7*************************************************************************/
8/***************************************************************************
9 * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining
12 * a copy of this software and associated documentation files (the
13 * "Software"), to deal in the Software without restriction, including
14 * without limitation the rights to use, copy, modify, merge, publish,
15 * distribute, sublicense, and/or sell copies of the Software, and to
16 * permit persons to whom the Software is furnished to do so, subject to
17 * the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be
20 * included in all copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28 * OTHER DEALINGS IN THE SOFTWARE.
29 ***************************************************************************/
30#ifndef _SILLYBase_h_
31#define _SILLYBase_h_
32#include <cassert>
33#include <cstddef>
34
35#if defined(USE_SILLYOPTIONS_H)
36#include "SILLYOptions.h"
37#endif
38
39#if defined(_WIN32) || defined(__WIN32__)
40# undef SILLY_OPT_INLINE // No inlining
41# undef SILLY_BE // Little Endian
42# ifdef SILLY_EXPORTS
43# define SILLY_EXPORT __declspec(dllexport)
44# else
45# define SILLY_EXPORT __declspec(dllimport)
46# endif
47#else
48# define SILLY_EXPORT
49#endif
50
51// Start of section namespace SILLY
52namespace SILLY
53{
54
60{
61 PF_A1B5G5R5, //<! 16 bits, pixel format is A1R5G5B5 (GGGBBBBB,ARRRRRGG on disk)
62 PF_RGB, //<! 24 bits, pixel format is 8 bits for R, G, B
63 PF_RGBA, //<! 32 bits, pixel format is 8 bits for R, G, B and A channel
64 PF_ORIGIN, //<! This format is used when the input storage use a specific pixel format
65};
71{
72 PO_TOP_LEFT, //<! The resulting image origine is Top Left
73 PO_BOTTOM_LEFT, //<! The resulting image origine is Bottom Left
74};
75
80typedef unsigned char byte;
88bool SILLY_EXPORT SILLYInit();
89
94void SILLY_EXPORT SILLYCleanup();
95
96} // End of section namespace SILLY
97
98#endif // end of guard _SILLYBase_h_
99
Simple Image Loading LibrarY namespace.
unsigned char byte
Typename for a byte.
Definition SILLYBase.h:80
void SILLYCleanup()
Cleanup SILLY library internal.
PixelFormat
List all pixel format supported.
Definition SILLYBase.h:60
bool SILLYInit()
Initialize the SILLY Library.
PixelOrigin
List all pixel origin supported.
Definition SILLYBase.h:71