Last change
on this file since 1519 was
1442,
checked in by sam, 11 years ago
|
orbital: some improvements to the mesh parser and error reporting.
|
File size:
871 bytes
|
Line | |
---|
1 | // |
---|
2 | // Orbital |
---|
3 | // |
---|
4 | // Copyright: (c) 2009-2012 Cédric Lecacheur <jordx@free.fr> |
---|
5 | // (c) 2009-2012 Benjamin Huet <huet.benjamin@gmail.com> |
---|
6 | // (c) 2012 Sam Hocevar <sam@hocevar.net> |
---|
7 | // |
---|
8 | |
---|
9 | #if defined HAVE_CONFIG_H |
---|
10 | # include "config.h" |
---|
11 | #endif |
---|
12 | |
---|
13 | #if defined _XBOX |
---|
14 | # define _USE_MATH_DEFINES /* for M_PI */ |
---|
15 | # include <xtl.h> |
---|
16 | # undef near /* Fuck Microsoft */ |
---|
17 | # undef far /* Fuck Microsoft again */ |
---|
18 | #elif defined _WIN32 |
---|
19 | # define _USE_MATH_DEFINES /* for M_PI */ |
---|
20 | # define WIN32_LEAN_AND_MEAN |
---|
21 | # include <windows.h> |
---|
22 | # undef near /* Fuck Microsoft */ |
---|
23 | # undef far /* Fuck Microsoft again */ |
---|
24 | #else |
---|
25 | # include <cmath> |
---|
26 | #endif |
---|
27 | |
---|
28 | #include "core.h" |
---|
29 | #include "loldebug.h" |
---|
30 | |
---|
31 | using namespace lol; |
---|
32 | |
---|
33 | #include "orbital.h" |
---|
34 | #include "gun-compiler.h" |
---|
35 | |
---|
36 | void Gun::Compile(char const *command) |
---|
37 | { |
---|
38 | orbital::GunCompiler gc(*this); |
---|
39 | gc.ParseString(command); |
---|
40 | } |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.