Sam Hocevar
2fa398926d
math: improve the 2D and 3D box classes.
Box objects (AABB) now have the long awaited extent() and center()
methods. Corners are now called “aa” and “bb” for convenience. The
WorldEntity class uses a box3 for its AABB instead of two vec3s.
This allows us to simplify a lot of verbose code.
hace 10 años
Benjamin ‘Touky’ Huet
cfcff9acc3
MultiScene: Phase 1: g_scene removal and conversion to Scene::
hace 10 años
Sam Hocevar
40fe753e4f
image: remove "color" typedef since we already have the "Color" class, and rename a few things.
hace 10 años
Sam Hocevar
7e04bd038a
scene: remove functions that aren’t that useful.
hace 11 años
Benjamin ‘Touky’ Huet
a89dac5c30
Fixed some stuff and added some small tweaks
hace 11 años
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
hace 11 años
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
hace 11 años
Benjamin ‘Touky’ Huet
fd4cb5e350
Added debug stuff
hace 11 años
Benjamin ‘Touky’ Huet
dbb1d02aa6
Added 2D to 3D DebugLines
hace 11 años
Benjamin ‘Touky’ Huet
d3b6bb6dce
workbench update
hace 11 años
Benjamin ‘Touky’ Huet
cc8e6ced51
Added Debug DrawBox+DrawCapsule+DrawCircle+DrawSphere for ze lulz
hace 11 años
Sam Hocevar
8ede168e62
color: add some vec4 constants for usual colour names.
hace 11 años
Benjamin ‘Touky’ Huet
b1fbc0259f
Added Mask & StickyTime to Draw Debug
hace 11 años
Benjamin ‘Touky’ Huet
a9972696e6
Tweaked stuff in the AABBTree element storage.
Added RemoveElement
hace 11 años
Benjamin ‘Touky’ Huet
7c9f96e426
Added Debug::DrawViewProj
hace 12 años
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
hace 12 años
Sam Hocevar
b29519602a
debug: fewer lines of code in DrawBox().
hace 13 años
Sam Hocevar
872efdb880
debug: add Debug::DrawLine() and Debug::DrawBox() methods.
hace 13 años