Sam Hocevar
4be5ebd8b3
ps3: use network fallback for image files.
13 роки тому
Sam Hocevar
32753fa130
build: fix a few macro logic issues in SDL.h inclusion.
13 роки тому
Sam Hocevar
1e973c81bd
build: add SDL detection code in new file lol-sdl.m4. The SDL2 version is
disabled until the engine code itself is ported to SDL2.
13 роки тому
Sam Hocevar
b25222af18
base: implement UNUSED() macro and put it here and there.
13 роки тому
Benjamin ‘Touky’ Huet
7a051f9455
Added MeshViewer new project, its goal being to have a program capable of previewing a mesh from an outer source (.txt, js, etc ...) in order to speed up mesh creation.
Added RadialJitter("rj") to EasyMesh parser.
13 роки тому
Sam Hocevar
9f6814fbd8
gpu: fix PS3 compilation caused by wrong function names.
13 роки тому
Sam Hocevar
0ba4e6d9e0
easymesh: interface the shiny shader with new Light objects.
13 роки тому
Sam Hocevar
e960628223
gpu: allow to set array uniform values.
13 роки тому
Benjamin ‘Touky’ Huet
b273f1729e
Small fix in template lerp
13 роки тому
Sam Hocevar
3adf42b00c
build: hide LolFx external declarations behind macros.
13 роки тому
Sam Hocevar
39cd7a1fd0
build: revert the weak symbol work; it confuses Visual Studio too much.
13 роки тому
Sam Hocevar
d3af7653c0
build: provide weak symbols for lol_sdl_main on Visual Studio.
13 роки тому
Sam Hocevar
96256f45ce
build: use our own main() wrapper in addition to SDL's, and only
in that case. Currently only works with GCC.
13 роки тому
Sam Hocevar
69629d16c1
color: tweak RGB to HSV/HSL code for not yet investigated numerical
stability issues.
13 роки тому
Sam Hocevar
b07216ae20
base: add missing local using statement for namespace std.
13 роки тому
Sam Hocevar
57814351b9
base: optimise array concatenation, fix string concatenation, and fix
string concatenation unit tests.
13 роки тому
Sam Hocevar
41b752e635
base: tweak the asserts in the String class, add String::Sub() method
for substrings, and the corresponding unit tests.
13 роки тому
Sam Hocevar
0ea4133bba
base: add safety asserts to the Array and String classes.
13 роки тому
Sam Hocevar
8613d04c03
core: implement a cool ASSERT() macro.
13 роки тому
Sam Hocevar
e7806e96cc
build: check for getcwd() and _getcwd() and configure time.
13 роки тому
Sam Hocevar
937f3e4522
sys: check for <unistd.h> and use getcwd() properly on non-Windows systems.
13 роки тому
Sam Hocevar
7d9d7184f3
base: fix header guard names.
13 роки тому
Sam Hocevar
34948b7a0c
base: fix a bug in the String fixed-size constructor.
13 роки тому
Sam Hocevar
ce04c94ff3
sys: retrieve executable path if available.
13 роки тому
Sam Hocevar
4a643241be
build: remove leftover entries from .vcxproj.
13 роки тому
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.
13 роки тому
Sam Hocevar
c65b715e3a
core: implement String::Printf() for va_list arguments.
13 роки тому
Sam Hocevar
a2b1a60689
core: fix PS3 compilation.
13 роки тому
Sam Hocevar
75b677cade
core: add missing <cstring> include in our string.h.
13 роки тому
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
145ad9e806
build: fix a ClInclude that should have been ClCompile.
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 роки тому
Benjamin ‘Touky’ Huet
ad275175b8
Tweak to prevent tri_to_process.Last().m1 emptying.
13 роки тому
Sam Hocevar
3973f80a9d
base: fix a nasty double free issue in Array::Remove().
13 роки тому
Benjamin ‘Touky’ Huet
1038fa7fbe
Small MeshCsg return FIX
13 роки тому
Benjamin ‘Touky’ Huet
6db0694db4
Revert shiny.lolfx to previous, monogolo-commit.
13 роки тому
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.
13 роки тому
Benjamin ‘Touky’ Huet
3d56a23a55
Added geometry basic functions.
TODO : second pass on coding-style, and some tweak & usage modification.
13 роки тому
Sam Hocevar
f44e3e323b
core: you can now while(app.MustTick()) { Tick(); } instead of app.Run().
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 роки тому
jeunathe
08e81c93d1
coding style my ass
13 роки тому
jeunathe
504f9a4ca2
Update EasyMesh.Convert() method.
Now takes an optional shader
13 роки тому