Procházet zdrojové kódy

math: clean up the Real class.

wip/core-clipp
Sam Hocevar před 5 roky
rodič
revize
80dafa8edf
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. +4
    -3
      include/lol/math/real.h

legacy/lol/math/real.h → include/lol/math/real.h Zobrazit soubor

@@ -1,7 +1,7 @@
// //
// Lol Engine // Lol Engine
// //
// Copyright © 2010—2019 Sam Hocevar <sam@hocevar.net> // Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
// //
// Lol Engine is free software. It comes without any warranty, to // Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it // the extent permitted by applicable law. You can redistribute it
@@ -17,8 +17,6 @@
// -------------- // --------------
// //


#include <lol/base/types.h>

#include <vector> #include <vector>
#include <string> #include <string>
#include <cstdint> #include <cstdint>
@@ -30,6 +28,9 @@ namespace lol
#undef min #undef min
#undef max #undef max


template<typename T> class Real;
typedef Real<uint32_t> real;

/* /*
* The base class for reals. The only real reason for making this a template * The base class for reals. The only real reason for making this a template
* class is so we can have implicit constructors ("real x = 1" works) but * class is so we can have implicit constructors ("real x = 1" works) but

||||||
x
 
000:0
Načítá se…
Zrušit
Uložit