Sam Hocevar
|
bbf72e1a64
|
core: pass the project directory to the binary build and get rid of
that 2-year old "temporary Win32 hack".
|
13 лет назад |
Sam Hocevar
|
6ce17605a7
|
string: implement String::Last() and a constructor for fixed-length strings.
|
13 лет назад |
Sam Hocevar
|
1a54a81167
|
sys: move thread.h to the sys/ directory.
|
13 лет назад |
Sam Hocevar
|
6a6e46cf0d
|
system: try to autodetect the data directory from the executable path;
currently works for images (SDL and GDI+ loaders) and sound samples.
|
13 лет назад |
Sam Hocevar
|
8dd6d33a6d
|
base: implement String::Resize().
|
13 лет назад |
Lolbot
|
7e4da3d634
|
fixed 27 files out of 2315:
- removed 0 CR characters
- removed 188 trailing whitespaces
- replaced 537 tabs with spaces
|
13 лет назад |
Sam Hocevar
|
3973f80a9d
|
base: fix a nasty double free issue in Array::Remove().
|
13 лет назад |
Benjamin ‘Touky’ Huet
|
3d56a23a55
|
Added geometry basic functions.
TODO : second pass on coding-style, and some tweak & usage modification.
|
13 лет назад |
Sam Hocevar
|
d3032e3e67
|
color: slightly better HSVToRGB routine.
|
13 лет назад |
Sam Hocevar
|
47cf667a93
|
color: write the RGB to HSL routine and its associated unit tests.
|
13 лет назад |
Sam Hocevar
|
5715742774
|
color: optimise RGB to HSV conversion routine using my latest findings,
and add a simple unit test function.
|
13 лет назад |
Benjamin ‘Touky’ Huet
|
c7219ff1dd
|
New year copyright update.
|
13 лет назад |
Sam Hocevar
|
d9bdb33bc0
|
color: a reasonably fast RGB to HSV conversion with only three tests.
|
13 лет назад |
Sam Hocevar
|
d8577e0ec7
|
color: move the CIEDE2000 distance code into the C++ file and
reorganise the CIE-1931 and CIE-1964 tables.
|
13 лет назад |
Sam Hocevar
|
4e678e2cd0
|
color: linear interpolation for the wavelength to colour function.
|
13 лет назад |
Sam Hocevar
|
44f324a354
|
color: add conversion from CIE-xyY to CIE-XYZ and start working on
a wavelength to saturated xyY function based on the standard observer
data.
|
13 лет назад |
Sam Hocevar
|
46cc299f5e
|
base: fix more memory corruptions in the Array class.
|
13 лет назад |
Sam Hocevar
|
02bea89c0e
|
color: ensure XYZ values use the [0 100] scale and add an optional
white value in case we want to convert XYZ to L*a*b* with something
else than D65.
|
13 лет назад |
Sam Hocevar
|
1b9b5be4b7
|
color: add HSL/HSV conversions, fix XYZ/RGB conversions that I mixed up,
add XYZ to xyY conversion (which gives us a pretty accurate xy graph of
the sRGB gamut), and normalise XYZ using a D65 white point.
|
13 лет назад |
Sam Hocevar
|
1fe4a5796e
|
math: mark unused arguments as used in fract().
|
13 лет назад |
Sam Hocevar
|
1787ddbf19
|
color: implement HSV to RGB transformation and a CIEDE2000 distance
function for CIE L*a*b* values.
|
13 лет назад |
Sam Hocevar
|
e00d987083
|
math: implement fract() for vectors and scalar types.
|
13 лет назад |
Sam Hocevar
|
461b02a9b3
|
color: conversions from CIE XYZ to CIE L*a*b*.
|
13 лет назад |
Sam Hocevar
|
ecfb33af45
|
math: define lol::pow to remove ambiguous calls.
|
13 лет назад |
Sam Hocevar
|
10d5d30b85
|
image: a few colour conversion routines.
|
13 лет назад |
Sam Hocevar
|
d49bb04d20
|
build: rename “core” directory to “base” because the former is used for core
files on some Unix systems.
|
13 лет назад |
Sam Hocevar
|
d6634da83f
|
build: fix the WTFPL site URL in all code comments.
|
13 лет назад |
Sam Hocevar
|
8c50a08147
|
doc: fix claims in the documentation introduction and disable vector.h
subtelties to avoid polluting Doxygen.
|
13 лет назад |
Sam Hocevar
|
c2b075c7a9
|
core: fix a memory corruption in the Array class.
|
13 лет назад |
Sam Hocevar
|
bbc2edcc8e
|
core: we can now set Map elements using simply map[foo] = bar, no need for
a Set() method. Also, new HasKey() method.
|
13 лет назад |
Sam Hocevar
|
38d4d0302e
|
core: implement a simple linear search map; the API is here, we just
need to make it O(logn) or even O(1) now.
|
13 лет назад |
Sam Hocevar
|
b03411e30a
|
core: make hash operators const.
|
13 лет назад |
Sam Hocevar
|
2a5d9ed4d8
|
build: rename Map to LevelMap so that we can use Map for the hashmap.
|
13 лет назад |
Sam Hocevar
|
397c7f2fda
|
core: implement hashing functions for half, float and double.
|
13 лет назад |
Sam Hocevar
|
46cf14e37c
|
core: allow hashing of String objects.
|
13 лет назад |
Sam Hocevar
|
949128d325
|
core: implement String::Printf() and start working on the unit tests.
I'm gonna commit this right now though I'm not really sure whether Visual
Studio will agree to build va_copy and others.
|
13 лет назад |
Sam Hocevar
|
0149c30df4
|
core: refactor the Hash class so that we can hash base types, too.
|
13 лет назад |
Sam Hocevar
|
46f7e750c0
|
core: more string concatenation and comparison methods, plus a lot
of unit tests for the String class.
|
13 лет назад |
Sam Hocevar
|
fed77ef83e
|
core: compilation fix for older compilers.
|
13 лет назад |
Sam Hocevar
|
f2b71d368e
|
core: new String class.
|
13 лет назад |
Sam Hocevar
|
63868aa10a
|
math: prefix all convenience macros with "LOL_", make sure we #undef
them after use, and refactor them so that free functions such as
fmod() or clamp() are directly accessible in the lol namespace.
|
13 лет назад |
Sam Hocevar
|
b5cb7601a7
|
build: define our own std::abs() function for long long int on NaCl,
since it doesn't exist there.
|
13 лет назад |
Sam Hocevar
|
b2e00f113c
|
build: fix minor build issues with Clang.
|
13 лет назад |
Sam Hocevar
|
57c2805351
|
math: reimplement min(), max(), abs() and fmod() in the lol:: namespace to
avoid conflicts with the C++ stdlib.
|
13 лет назад |
Sam Hocevar
|
e4954c0a0f
|
math: implement abs() and fmod() for vector types and the half class.
|
13 лет назад |
Sam Hocevar
|
2bf4cb668b
|
math: add a uniform scaling matrix constructor.
|
13 лет назад |
Sam Hocevar
|
222ae90ba8
|
core: use "f128" as the long double prefix for vectors, even if it's
not always really a 128-bit type.
|
13 лет назад |
Sam Hocevar
|
d4c0c005d6
|
math: refactor real number constant declarations so that they are only
computed on demand with static initialisation.
|
13 лет назад |
Lolbot
|
23807ea88e
|
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
|
13 лет назад |
Benjamin ‘Touky’ Huet
|
2f85ae6d0a
|
|
13 лет назад |