Sam Hocevar
47e71bda63
base: rough implementation of safe enums with minimal ToString() support.
10 anos atrás
Sam Hocevar
7e769d6c79
base: make the safe enums slightly safer. :-)
10 anos atrás
Sam Hocevar
38c5068834
build: add palette.lolfx to Makefile.am.
10 anos atrás
Sam Hocevar
79b3493a0c
build: a few gcc/makefile compilation fixes.
11 anos atrás
Benjamin ‘Touky’ Huet
8268513786
Added Portal system to main code base
11 anos atrás
Sam Hocevar
92c2f69d07
algorithm: move Array::Sort out of the base headers because their implementation
requires stuff from lol/math, too.
11 anos atrás
Sam Hocevar
547fe6a908
color: utility functions to convert vec3 colors to hex strings.
11 anos atrás
Sam Hocevar
f9840e3458
lolremez: move LolRemez out of the engine, it's really too specific.
11 anos atrás
Sam Hocevar
1945e85afc
scene: start working on the scene class reorganisation.
11 anos atrás
Benjamin ‘Touky’ Huet
2b6b50aa26
EZMesh : Some files splitup
11 anos atrás
Benjamin ‘Touky’ Huet
34688578ae
Added Shiny flat lolfx
11 anos atrás
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
11 anos atrás
Benjamin ‘Touky’ Huet
0a7dc44a67
Added MessageService : Basic & Naive Message logging.
Camera & vector.cpp : Fixed shifted_perspective crash with almost zero FOV.
11 anos atrás
Benjamin ‘Touky’ Huet
d8114e6cfb
String : Added ::replace(char, char, bool), ::ToLower(), ::ToUpper()
Added utils.h : GetRandom(Array<T>) : gets a random element in a template list with weight logic.
T FindValue(char*) : Find the value of a safe enum from the given name (when GetName is implemented)
swap(T&, T&) is now in here too.
11 anos atrás
Sam Hocevar
19c357927f
build: synchronise Makefile.am with lolcore.vcxproj.
11 anos atrás
Sam Hocevar
399a172425
build: fix a few compilation issues with input v2.
11 anos atrás
Sam Hocevar
716c2b5592
gpu: create a Renderer and a RenderContext class to handle render states
such as alpha blending, depth test, etc.
11 anos atrás
Sam Hocevar
6faf4ee067
base: roll our own constants because it’s always a pain in the ass
to get M_PI from the platform headers and cast it to float.
12 anos atrás
Sam Hocevar
ddeaa5f81a
build: reorganise automake build system.
12 anos atrás
Sam Hocevar
c46b3fbfec
image: remove the Image::Format enum and use PixelFormat instead.
12 anos atrás
Sam Hocevar
c59fc670c2
core: import pristine lua 5.2.1 in the engine code.
12 anos atrás
Sam Hocevar
700520d4d6
math: move rand() to its own header, ensure it only returns
positive values, and add a unit test for rand<int>.
12 anos atrás
Sam Hocevar
872efdb880
debug: add Debug::DrawLine() and Debug::DrawBox() methods.
12 anos atrás
Sam Hocevar
1d0eab0203
base: on Linux and some other architectures, dump a stack trace before
crashing from an assertion failure.
12 anos atrás
Sam Hocevar
6c8186389f
math: Interp class for frame-independent interpolation.
12 anos atrás
Sam Hocevar
4b4d201a6d
build: reorganise AM_CPPFLAGS handling so that we can disable the
shitload of warnings Bullet spits at us.
12 anos atrás
Sam Hocevar
6e1156aaea
build: split the main library into lolcore and lolbullet.
12 anos atrás
Sam Hocevar
d6121b4651
build: add shiny_SK.lolfx to Makefile.am.
12 anos atrás
Sam Hocevar
32e3cff46a
sys: Atomic template class for thread-safe and potentially lockless
structures.
12 anos atrás
Sam Hocevar
c7767c6c64
sys: create an empty File class.
12 anos atrás
Sam Hocevar
886173c3cc
build: add a few missing files to make dist.
12 anos atrás
Sam Hocevar
06c4ec01c3
base: move headers around and promote gpu/ to lol/gpu/.
12 anos atrás
Sam Hocevar
0ba4e6d9e0
easymesh: interface the shiny shader with new Light objects.
12 anos atrás
Sam Hocevar
8613d04c03
core: implement a cool ASSERT() macro.
12 anos atrás
Sam Hocevar
5402346b16
core: move the Log and Timer classes to the sys/ subdirectory, use
the String class instead of the stack for logging, and get rid of
the old and useless BitField class.
12 anos atrás
Sam Hocevar
1a54a81167
sys: move thread.h to the sys/ directory.
12 anos atrás
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.
12 anos atrás
Benjamin ‘Touky’ Huet
4393a43752
Added CSG v0.001a : not optimized, too much operation makes it slow. triangle count is not optimized.
Useage : "...[.... csg*]" equals "current mesh -CSG- the mesh in the braces".
Keywords : CsgUnion<csgu>, CsgSubstract<csgs>, CsgAnd<csga>, CsgXor<csgx>
TODO : cleanup useless code.
TODO : Some bugs are still present, some face that disappear should not.
TODO : Correct epsilon useage (see geometry files).
TODO : Coplanar face are not handled -at all-.
TODO : Vertex count goes through the roof in case of a Xor.
12 anos atrás
Benjamin ‘Touky’ Huet
3d56a23a55
Added geometry basic functions.
TODO : second pass on coding-style, and some tweak & usage modification.
12 anos atrás
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.
12 anos atrás
Sam Hocevar
10d5d30b85
image: a few colour conversion routines.
12 anos atrás
Sam Hocevar
d49bb04d20
build: rename “core” directory to “base” because the former is used for core
files on some Unix systems.
12 anos atrás
Sam Hocevar
2a5d9ed4d8
build: rename Map to LevelMap so that we can use Map for the hashmap.
12 anos atrás
Sam Hocevar
397c7f2fda
core: implement hashing functions for half, float and double.
12 anos atrás
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.
12 anos atrás
Sam Hocevar
52e7f2f399
build: add missing bullet .h files to Makefile.am.
12 anos atrás
Sam Hocevar
0149c30df4
core: refactor the Hash class so that we can hash base types, too.
12 anos atrás
Sam Hocevar
46f7e750c0
core: more string concatenation and comparison methods, plus a lot
of unit tests for the String class.
12 anos atrás
Sam Hocevar
bbca3b6e59
build: fixes for out-of-tree builds, and get rid of
some deprecated stuff.
12 anos atrás
Sam Hocevar
4a6d092a74
mesh: start working on mesh and submesh stuff.
12 anos atrás