Last change
on this file since 2435 was
2261,
checked in by sam, 7 years ago
|
base: fix header guard names.
|
-
Property svn:keywords set to
Id
|
File size:
1005 bytes
|
Line | |
---|
1 | // |
---|
2 | // Lol Engine |
---|
3 | // |
---|
4 | // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net> |
---|
5 | // This program is free software; you can redistribute it and/or |
---|
6 | // modify it under the terms of the Do What The Fuck You Want To |
---|
7 | // Public License, Version 2, as published by Sam Hocevar. See |
---|
8 | // http://www.wtfpl.net/ for more details. |
---|
9 | // |
---|
10 | |
---|
11 | #if !defined __LOL_BASE_TYPES_H__ |
---|
12 | #define __LOL_BASE_TYPES_H__ |
---|
13 | |
---|
14 | namespace lol |
---|
15 | { |
---|
16 | |
---|
17 | /* There are many reasons for wanting single-word type names, the most |
---|
18 | * important one being compilation speedups in our vector.h: we can hide |
---|
19 | * some global methods in namespaces that contain the name of the type, |
---|
20 | * but namespaces cannot have spaces in their names. */ |
---|
21 | typedef long double ldouble; |
---|
22 | |
---|
23 | /* The “real” type used for real numbers. It’s a specialisation of the |
---|
24 | * “Real” template class. */ |
---|
25 | template<int N> class Real; |
---|
26 | typedef Real<16> real; |
---|
27 | |
---|
28 | /* The “half” type used for 16-bit floating point numbers. */ |
---|
29 | class half; |
---|
30 | |
---|
31 | } /* namespace lol */ |
---|
32 | |
---|
33 | #endif // __LOL_BASE_TYPES_H__ |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.