Crazy Eddie's GUI System
0.8.7
Loading...
Searching...
No Matches
OgreMacros.h
1
/***************************************************************************
2
* Copyright (C) 2018 Erik Ogenvik
3
*
4
* Permission is hereby granted, free of charge, to any person obtaining
5
* a copy of this software and associated documentation files (the
6
* "Software"), to deal in the Software without restriction, including
7
* without limitation the rights to use, copy, modify, merge, publish,
8
* distribute, sublicense, and/or sell copies of the Software, and to
9
* permit persons to whom the Software is furnished to do so, subject to
10
* the following conditions:
11
*
12
* The above copyright notice and this permission notice shall be
13
* included in all copies or substantial portions of the Software.
14
*
15
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21
* OTHER DEALINGS IN THE SOFTWARE.
22
***************************************************************************/
23
24
#ifndef _CEGUIOgreMacros_h_
25
#define _CEGUIOgreMacros_h_
26
27
#include <OgrePrerequisites.h>
28
29
//New shared ptr API introduced in 1.10.1
30
#if OGRE_VERSION >= 0x10A01
31
#define OGRE_RESET(_sharedPtr) ((_sharedPtr).reset())
32
#define OGRE_ISNULL(_sharedPtr) (!(_sharedPtr))
33
#else
34
#define OGRE_RESET(_sharedPtr) ((_sharedPtr).setNull())
35
#define OGRE_ISNULL(_sharedPtr) ((_sharedPtr).isNull())
36
#endif
37
38
#endif
//_CEGUIOgreMacros_h_
cegui
include
CEGUI
RendererModules
Ogre
OgreMacros.h
Generated by
1.9.8