Sam Hocevar
9e4b6a4155
build: add path to lolfx resource names
This will help us deal with shader name collision. Breaks the Windows
build for the moment, unfortunately.
pirms 8 gadiem
Sam Hocevar
6a35a64dd5
sys: make a few functions lowercase.
pirms 8 gadiem
Sam Hocevar
078751a820
math: all API functions dealing with angles now use radians.
We already have the convenient degrees() and radians() functions to convert
between angle formats. This commit involves a lot of refactoring here and
there and I may have missed some places where conversions were needed. But
hopefully there aren’t may such places.
pirms 9 gadiem
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
pirms 9 gadiem
Sam Hocevar
441a20af99
misc: fix copyright information here and there.
pirms 9 gadiem
Sam Hocevar
03c17fcae4
base: clean up and refactor containers.
The containers no longer force the user to use the ptrdiff_t type for
size information. For convenience, size() now always returns an int,
and the size_s() method offers a way to handle arrays with more than
2 billion elements. Internally, we still use ptrdiff_t, though.
Since so much code had to be changed, I took the opportunity to get
rid of capitalised accessors for classes that are lowercase.
pirms 9 gadiem
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
pirms 9 gadiem
Benjamin ‘Touky’ Huet
22322d50fd
Scene::AddPrimitive now only supports Primitive because why not
pirms 9 gadiem
Benjamin ‘Touky’ Huet
a7d6e0190e
Scene stuff is back to non-static logic with a few tricks
Scene rendering logic is now better
pirms 9 gadiem
Benjamin ‘Touky’ Huet
cfcff9acc3
MultiScene: Phase 1: g_scene removal and conversion to Scene::
pirms 9 gadiem
Benjamin ‘Touky’ Huet
9c07e8c2e0
Added Thread classes
Added InputProfile in Controller
Added ExecLuaCode
pirms 9 gadiem
Benjamin ‘Touky’ Huet
00807670b9
Easymesh test tuto works with lua, but EzMesh seems broken.
pirms 9 gadiem
Sam Hocevar
d72cb24bc0
build: move sample and tutorial files around.
pirms 10 gadiem
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
pirms 10 gadiem
Sam Hocevar
ad9a388e80
misc: remove 100% of the "using namespace std;" madness.
pirms 10 gadiem
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
pirms 10 gadiem
Sam Hocevar
398ee1b4d5
base: use lol::array in most places.
pirms 10 gadiem
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
pirms 10 gadiem
Sam Hocevar
79ed58f1f0
Merge branch 'master' into scenegraph
pirms 10 gadiem
Lolbot
ece13aaabf
fixed 19 files out of 2757:
- removed 510 CR characters
- removed 26 trailing whitespaces
- replaced 0 tabs with spaces
- fixed 15 svn:eol-style properties
pirms 10 gadiem
Benjamin ‘Touky’ Huet
a8f0081deb
Added tweak to 05_EZMesh to show how custom shader setting works.
pirms 10 gadiem
Sam Hocevar
ca87acd033
scene: fix light object usage in various demos and example programs.
pirms 11 gadiem
Sam Hocevar
6a8118cb18
build: put tutorials and lol.js in a new "demos" directory.
pirms 11 gadiem
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
pirms 11 gadiem
Sam Hocevar
274a732e3c
gpu: move SetClearColor and SetClearDepth to the Renderer and RenderContext
classes instead of Video.
pirms 11 gadiem
Sam Hocevar
16a620d537
scene: start refactoring the camera code; we now have a stack of cameras
in the scene where we can push and pop cameras.
pirms 11 gadiem
Sam Hocevar
0ba4e6d9e0
easymesh: interface the shiny shader with new Light objects.
pirms 12 gadiem
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.
pirms 12 gadiem
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.
pirms 12 gadiem
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
pirms 12 gadiem
Sam Hocevar
2ec31981fd
easymesh: make demo objects smaller.
pirms 12 gadiem
Sam Hocevar
7fa661a2fd
easymesh: motherfucking planetary gears demo.
pirms 12 gadiem
Sam Hocevar
662148406f
easymesh: allow central holes in gears as well as internal gears.
pirms 12 gadiem
Sam Hocevar
adfd582b98
tutorial: HUGE COGS.
pirms 12 gadiem
Sam Hocevar
4cee96d09d
easymesh: use "ato" for torus, because "at" is already for triangle.
pirms 12 gadiem
Sam Hocevar
38364a0bd6
easymesh: first shot at a simple, flat shaded torus.
pirms 12 gadiem
Cédric Lecacheur
82bb4cd6a3
EsayMesh : RadialJitter func & demo added
pirms 12 gadiem
Sam Hocevar
f74b85fcf7
tutorial: test some advanced shapes for easymesh.
pirms 12 gadiem
Sam Hocevar
837e56435d
easymesh: fix the specular highlight in the OpenGL shader.
pirms 12 gadiem
Sam Hocevar
7a776e72f5
core: fix the X360 build by re-adding macro barriers I removed.
pirms 12 gadiem
Sam Hocevar
5bd24fa1d3
build: hide the SDL_main.h inclusion in core.h, and only activate it
on Windows if using Visual Studio; if using MinGW, try to stick to the
original main() entry point.
pirms 12 gadiem
Sam Hocevar
b5563ad21d
core: switch the Win32/x64 binaries to the Windows subsystem so that they
do not open a console at startup.
pirms 12 gadiem
Sam Hocevar
497df444cc
easymesh: add the capsule mesh.
pirms 12 gadiem
Sam Hocevar
e12fc0e35c
tutorial: add a simple EasyMesh viewer.
pirms 12 gadiem