~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to COLLADAMax/include/COLLADAMaxPrerequisites.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
        This file is part of COLLADAMax.
 
5
 
 
6
    Portions of the code are:
 
7
    Copyright (c) 2005-2007 Feeling Software Inc.
 
8
    Copyright (c) 2005-2007 Sony Computer Entertainment America
 
9
    
 
10
    Based on the 3dsMax COLLADASW Tools:
 
11
    Copyright (c) 2005-2006 Autodesk Media Entertainment
 
12
        
 
13
    Licensed under the MIT Open Source License, 
 
14
    for details please see LICENSE file or the website
 
15
    http://www.opensource.org/licenses/mit-license.php
 
16
*/
 
17
 
 
18
 
 
19
#ifndef __COLLADAMAX_PREREQUISITES_H__
 
20
#define __COLLADAMAX_PREREQUISITES_H__
 
21
 
 
22
#define UNUSED(a) /**< Removes a piece of code during the pre-process. This macro is useful for these pesky unused variable warnings. */
 
23
 
 
24
#include "maxversion.h"
 
25
 
 
26
 
 
27
#if ( MAX_VERSION_MAJOR >= 7 )
 
28
#  define MAX_7_OR_NEWER
 
29
#endif
 
30
#if ( MAX_VERSION_MAJOR == 7 )
 
31
#  define MAX_7
 
32
#endif
 
33
 
 
34
#if ( MAX_VERSION_MAJOR >= 8 )
 
35
#  define MAX_8_OR_NEWER
 
36
#endif
 
37
#if ( MAX_VERSION_MAJOR == 8 )
 
38
#  define MAX_8
 
39
#endif
 
40
 
 
41
#if ( MAX_VERSION_MAJOR >= 9 )
 
42
#  define MAX_9_OR_NEWER
 
43
#endif
 
44
#if ( MAX_VERSION_MAJOR == 9 )
 
45
#  define MAX_9
 
46
#endif
 
47
 
 
48
#if ( MAX_VERSION_MAJOR >= 10 )
 
49
#  define MAX_2008_OR_NEWER
 
50
#endif
 
51
#if ( MAX_VERSION_MAJOR == 10 )
 
52
#  define MAX_2008
 
53
#endif
 
54
 
 
55
#if ( MAX_VERSION_MAJOR >= 11 )
 
56
#  define MAX_2009_OR_NEWER
 
57
#endif
 
58
#if ( MAX_VERSION_MAJOR == 11 )
 
59
#  define MAX_2009
 
60
#endif
 
61
 
 
62
#if ( MAX_VERSION_MAJOR >= 12 )
 
63
#  define MAX_2010_OR_NEWER
 
64
#endif
 
65
#if ( MAX_VERSION_MAJOR == 12 )
 
66
#  define MAX_2010
 
67
#endif
 
68
 
 
69
#if ( MAX_VERSION_MAJOR >= 13 )
 
70
#  define MAX_2011_OR_NEWER
 
71
#endif
 
72
#if ( MAX_VERSION_MAJOR == 13 )
 
73
#  define MAX_2011
 
74
#endif
 
75
 
 
76
#if ( MAX_VERSION_MAJOR >= 14 )
 
77
#  define MAX_2012_OR_NEWER
 
78
#endif
 
79
#if ( MAX_VERSION_MAJOR == 14 )
 
80
#  define MAX_2012
 
81
#endif
 
82
 
 
83
#if ( MAX_VERSION_MAJOR >= 15 )
 
84
#  define MAX_2013_OR_NEWER
 
85
#endif
 
86
#if ( MAX_VERSION_MAJOR == 15 )
 
87
#  define MAX_2013
 
88
#endif
 
89
 
 
90
 
 
91
// Max 2009 requires RTTI to be enabled
 
92
#ifdef MAX_2009_OR_NEWER
 
93
#ifndef _CPPRTTI
 
94
#error "Max 2009 or newer requires RTTI to be enabled. Please enable and try again..."
 
95
#endif
 
96
#endif
 
97
 
 
98
 
 
99
#define TIME_INITIAL_POSE  0
 
100
//#define TIME_EXPORT_START  0//OPTS->AnimStart()
 
101
 
 
102
 
 
103
#include <string>
 
104
#include "COLLADABUURI.h"
 
105
#include "COLLADABUStringUtils.h"
 
106
#include "COLLADABUNativeString.h"
 
107
#include "Math/COLLADABUMathUtils.h"
 
108
 
 
109
 
 
110
namespace COLLADAMax
 
111
{
 
112
    typedef COLLADABU::URI URI;
 
113
    typedef COLLADABU::Utils Utils;
 
114
    typedef COLLADABU::StringUtils StringUtils;
 
115
    typedef COLLADABU::NativeString NativeString;
 
116
    typedef COLLADABU::Math::Utils MathUtils;
 
117
 
 
118
    typedef std::string String;
 
119
    typedef std::wstring WideString;
 
120
}
 
121
 
 
122
 
 
123
 
 
124
#endif //__COLLADAMAX_PREREQUISITES_H__