source: trunk/src/lol/core/types.h @ 2183

Last change on this file since 2183 was 2183, checked in by sam, 7 years ago

build: fix the WTFPL site URL in all code comments.

  • Property svn:keywords set to Id
File size: 1005 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2012 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_CORE_TYPES_H__
12#define __LOL_CORE_TYPES_H__
13
14namespace 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. */
21typedef long double ldouble;
22
23/* The “real” type used for real numbers. It’s a specialisation of the
24 * “Real” template class. */
25template<int N> class Real;
26typedef Real<16> real;
27
28/* The “half” type used for 16-bit floating point numbers. */
29class half;
30
31} /* namespace lol */
32
33#endif // __LOL_CORE_TYPES_H__
34
Note: See TracBrowser for help on using the repository browser.