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.
před 10 roky
Benjamin ‘Touky’ Huet
cfcff9acc3
MultiScene: Phase 1: g_scene removal and conversion to Scene::
před 10 roky
Sam Hocevar
40fe753e4f
image: remove "color" typedef since we already have the "Color" class, and rename a few things.
před 10 roky
Sam Hocevar
7e04bd038a
scene: remove functions that aren’t that useful.
před 11 roky
Benjamin ‘Touky’ Huet
a89dac5c30
Fixed some stuff and added some small tweaks
před 11 roky
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
před 11 roky
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
před 11 roky
Benjamin ‘Touky’ Huet
fd4cb5e350
Added debug stuff
před 11 roky
Benjamin ‘Touky’ Huet
dbb1d02aa6
Added 2D to 3D DebugLines
před 11 roky
Benjamin ‘Touky’ Huet
d3b6bb6dce
workbench update
před 11 roky
Benjamin ‘Touky’ Huet
cc8e6ced51
Added Debug DrawBox+DrawCapsule+DrawCircle+DrawSphere for ze lulz
před 11 roky
Sam Hocevar
8ede168e62
color: add some vec4 constants for usual colour names.
před 11 roky
Benjamin ‘Touky’ Huet
b1fbc0259f
Added Mask & StickyTime to Draw Debug
před 11 roky
Benjamin ‘Touky’ Huet
a9972696e6
Tweaked stuff in the AABBTree element storage.
Added RemoveElement
před 11 roky
Benjamin ‘Touky’ Huet
7c9f96e426
Added Debug::DrawViewProj
před 12 roky
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
před 12 roky
Sam Hocevar
b29519602a
debug: fewer lines of code in DrawBox().
před 13 roky
Sam Hocevar
872efdb880
debug: add Debug::DrawLine() and Debug::DrawBox() methods.
před 13 roky