Sam Hocevar
7a28671dee
math: get rid of the base_vec* classes (thanks to relaxed unions), rename
MASK to SWIZZLE in the vector templates, rename matrix<> to mat<> for
consistency, implement transposition for all matrix sizes, make matrix
columns private and only accessible through operator[].
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
c9b8ff54a1
misc: some refactoring in texture handling.
pirms 10 gadiem
Sam Hocevar
c29058ac87
gpu: give access to the Texture behind a TileSet.
pirms 10 gadiem
Sam Hocevar
ca87acd033
scene: fix light object usage in various demos and example programs.
pirms 11 gadiem
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
pirms 11 gadiem
Benlitz
eab5c46b1e
input: added a name the controllers, and a static Get() function to easily retrieve a registered controller
pirms 11 gadiem
Sam Hocevar
b45c1dc7fe
physics: always activate Bullet and remove dead code.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
83cfb79f8e
btphystest : InitApp delay
pirms 11 gadiem
Benjamin ‘Touky’ Huet
fb7d8a25e2
btphystest tweak to delay app init.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
5f3b0157e6
btphystest : small damp tweak.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
876f62228c
btphystest : added new camera functions. Added funny camera stuff for cat simulation.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
67d59ae9cb
btphystest : added small border effect
pirms 11 gadiem
Lolbot
4f2663acd9
fixed 4 files out of 2792:
- removed 6 CR characters
- removed 24 trailing whitespaces
- replaced 15 tabs with spaces
- fixed 1 svn:eol-style properties
pirms 11 gadiem
Benjamin ‘Touky’ Huet
40a1a18758
btphystest : cat movement update
pirms 11 gadiem
Sam Hocevar
4f66a49fc2
btphystest: use discard in fragment shader instead of AlphaFunc.
pirms 11 gadiem
Sam Hocevar
07fc08c198
build: more emscripten build fixes.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
a03c38872d
btPhysTest : Added a new test mode called "CAT_MODE". Try it out at your own risks.
pirms 11 gadiem
Sam Hocevar
7481fac29a
test: port the btphystest and meshviewer tests to the new input API.
pirms 11 gadiem
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
pirms 11 gadiem
Sam Hocevar
23a850c78d
test: quick fix for the btphystest camera.
pirms 11 gadiem
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.
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
8b7482ae09
build: bad lolbot! fix the mess caused by its file renames.
pirms 11 gadiem
Lolbot
ad2ddbb715
build: convert source files to lowercase.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
96f3044ef0
BtPhysTest : added lights
pirms 11 gadiem
Sam Hocevar
bbf72e1a64
core: pass the project directory to the binary build and get rid of
that 2-year old "temporary Win32 hack".
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
c7219ff1dd
New year copyright update.
pirms 12 gadiem
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
pirms 12 gadiem
Benjamin ‘Touky’ Huet
c0d15f170a
pirms 12 gadiem
Benjamin ‘Touky’ Huet
a11c50b3e7
small tweak on BtPhysTest. does not work better.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
006c3c4649
BulletCharacterController is now readable by a human being.
BtPhysTest now implements it with the BtKineCC logic -just modify that now-.
pirms 12 gadiem
Sam Hocevar
5f94ceb454
input: switch all key names to camel case, like our other enums.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
1e48c827a4
Input now works correctly
pirms 12 gadiem
Benjamin ‘Touky’ Huet
dd7e2b9516
CIS FUCK
pirms 12 gadiem
Benjamin ‘Touky’ Huet
08a54c1a2a
Added correct implementation of Action layer for Inputs.
Useage :
- Link action to key :
Input::LinkActionToKey(ACTION_TYPE Action, struct Key Button);
Input::UnlinkAction(ACTION_TYPE Action);
- Query action directly :
Input::GetStatus(ACTION_TYPE Action);
Input::WasPressed(ACTION_TYPE Action);
Input::WasReleased(ACTION_TYPE Action);
Also works with raw button, but not advised :
Input::GetStatus(Key Button);
Input::WasPressed(Key Button);
Input::WasReleased(Key Button);
pirms 12 gadiem
Benjamin ‘Touky’ Huet
8838ef06b6
Added InputTracker test initPhysTest
pirms 12 gadiem
Benjamin ‘Touky’ Huet
11ddba1864
Added Attachment/base logic with working attachment with EasyCharacterController.
Added RayCastResult & a naïve integration for EasyCharacterController.
Enjoy !
pirms 12 gadiem
Benjamin ‘Touky’ Huet
7334bb2ec1
Added Base/Attachment Logic, works with Kinematic & Ghost.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
735d3dace5
Reverted last CL
pirms 12 gadiem
Benjamin ‘Touky’ Huet
50c2855d89
Small .h & .cpp refactor
pirms 12 gadiem
Benjamin ‘Touky’ Huet
ca94a77974
BtPhysTest : Splitted Physics files
pirms 12 gadiem
Benjamin ‘Touky’ Huet
9845122641
FAKE Jump
pirms 12 gadiem
Benjamin ‘Touky’ Huet
e8d2d8c202
So Character Controller works with a lazy camera logic.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
1ca08dd0d7
LocalInertia error FIX.
Character integration better but still not working.
pirms 12 gadiem
Benjamin ‘Touky’ Huet
f514756a2d
Lazy WE :
Small tweaks in the BtPhysTest demo.
Added Ghost Object skeleton (not tested)
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