Sam Hocevar
a18ccb3987
build: drop support for SDL v1.
The only reason we had to keep this was for emscripten builds. We can
now use SDL v2 using “emconfigure ./configure CFLAGS="-s USE_SDL=2” and
a few additional flags.
SDL_Mixer v2 is not available in emscripten packages but either it will
be added at some time, or I will get rid of it altogether. An alternate
solution could be this code snippet I found:
cd SDL2_mixer
emconfigure ./configure --prefix=$(pwd)/dist --enable-music-ogg --disable-music-ogg-shared CFLAGS="-s USE_VORBIS=1"
emmake make install
před 7 roky
Sam Hocevar
968f7c92bb
Get rid of String::format in favour of a std::string version.
před 8 roky
Sam Hocevar
0239617197
Various compilation and warning fixes.
před 8 roky
Sam Hocevar
aca1660e1e
Disable debug messages by default and downgrade a few messages.
From now on, msg::debug will not display anything, unless this is a debug
build, or the LOL_DEBUG environment variable is set.
před 8 roky
touky
24d9405ff3
ResourceLoader + tileset tweaks
Moved ImageLoader to ResourceLoader, so that loading is extensible.
i.e. here: Zed image loader now loads up a tileset instead of being a
hacked image loader.
Goal is to support more funky stuff (wad, pak .....)
před 9 roky
touky
d8efedf4d7
sdl input tweak
sdl integration now supports OS character input as per existing in sdl.
Use SetTextInputActive to turn it off/on
před 9 roky
Sam Hocevar
89a8add7bf
audio: reorganise files
před 9 roky
Sam Hocevar
c6f4070e70
build: refactor autotools files for out-of-tree builds.
All these changes will allow us to more easily add Lol Engine as a
submodule of another Git project.
před 9 roky
Sam Hocevar
969911a10a
gpu: remove 1200 lines of old DirectX 9 code.
před 9 roky
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
před 10 roky
Lolbot
78b1319e2a
fixed 18 files out of 4242:
- removed 0 CR characters
- removed 12 trailing whitespaces
- replaced 0 tabs with spaces
- fixed 15 svn:eol-style properties
před 10 roky
Sam Hocevar
6ffaca4bbd
engine: move some files around.
před 10 roky
Benjamin ‘Touky’ Huet
3b00a2e5ee
Added Joystick count
před 10 roky
Sam Hocevar
d64b117b8d
build: fix license and copyright information.
před 10 roky
Sam Hocevar
70edc0d38e
misc: carry on with the lowercase rampage.
Using “Array” instead of “array” is now fully deprecated, and I replaced
the Log::Debug() etc. functions with msg::debug() etc. because log:: was
unavailable due to being a maths function.
Added up-to-date copyright notice and BOM to modified files, just in case.
před 10 roky
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.
před 10 roky
Benjamin ‘Touky’ Huet
7605caace4
MultiScene: Phase 4: Rendering is fixed.
Though it still is not possible to create a new window from a thread that did not init SDL
před 10 roky
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
před 10 roky
Sam Hocevar
7257bcc1e8
sdl: tiny fix for SDLv1 keyboard input.
před 10 roky
Sam Hocevar
42813316b8
build: improve emscripten build.
před 10 roky
Benjamin ‘Touky’ Huet
0e09074d33
Revamped Game/Draw groups to split stuff and help spreading tick
před 11 roky
Benjamin ‘Touky’ Huet
f139a7e164
LolImGui integration 2nd pass: It now works perfectly (to the extent of the api)
SDL2: Mouse is back ! With correct focus support
SDL2: Added typing support with keyboard
ShaderBuilder: Refactored and simplified Shader block creation
Several warning removal
Fixed Image::Copy
před 11 roky
Sam Hocevar
42a5296207
gpu: use PEGTL to split lolfx files into different parts.
před 11 roky
Sam Hocevar
4374db93c4
input: use key scancodes everywhere, but add a small fallback for SDL1.2.
před 11 roky
Sam Hocevar
0cc1dd69ba
input: use scancodes instead of ASCII values when using SDL v2.
před 11 roky
Sam Hocevar
6f1f7ab895
input: fix a typo in the key list and clean up some code.
před 11 roky
Sam Hocevar
7934df34ef
build: "USE_SDL" is now for SDL v2 and "USE_OLD_SDL" for version 1.
před 11 roky
Sam Hocevar
d373081b80
build: use #pragma once instead of header guards because 1) fuck the dinosaurs,
and 2) fuck the Visual Studio compiler that crashes when confused.
před 11 roky
Sam Hocevar
d37d124849
sdl: SDL2 video and audio support (no input yet).
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
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
před 11 roky
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
před 11 roky
Benjamin ‘Touky’ Huet
3d4b3d53c3
Added bunch of stuff on threads and images.
před 11 roky
Benjamin ‘Touky’ Huet
b98584957c
Added Mouse scroll as axis.
před 11 roky
Jean-Yves Lamoureux
b59fdb8baa
* Fix compilation on lesser tools
před 12 roky
Jean-Yves Lamoureux
171433e9de
* Fix compilation on lesser tools
před 12 roky
Jean-Yves Lamoureux
81e4f7421e
sdlinput: fix captured mouse coordinates
před 12 roky
Benjamin ‘Touky’ Huet
1cd715e6ef
Mouse support now works in emscripten
před 12 roky
Benjamin ‘Touky’ Huet
2da1903619
Build fix
před 12 roky
Benjamin ‘Touky’ Huet
dfc2a47f7f
Input : mouse focus integration.
před 12 roky
Benjamin ‘Touky’ Huet
3281169274
Input : Fixed mouse speed calculation in sdl & android.
před 12 roky
Benjamin ‘Touky’ Huet
747da72c44
Input : Small refactor, for clarity, easiness and beautification.
Constants : Added minus one.
před 12 roky
Benlitz
e1a4367226
input: fixed crash when user rotate the mouse wheel
před 12 roky
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
před 12 roky
Benlitz
c1da4619f7
input: renamed xinput keys to something more human readable (such as A or DPadLeft) and inverted mouse Y axis to match joystick axis (negatives being up)
core: calling InitGame() at the first tick of an entity. InitDraw is still uncalled yet
fixed mrpigeon and orbital accordingly
před 12 roky
Benjamin ‘Touky’ Huet
de338ae89a
nacl build fix.
před 12 roky
Sam Hocevar
349559acd9
input: fix uninitialised data in the SDL mouse input.
před 12 roky
Lolbot
d375c7ba61
fixed 4 files out of 2770:
- removed 0 CR characters
- removed 0 trailing whitespaces
- replaced 5 tabs with spaces
- fixed 1 svn:eol-style properties
před 12 roky
Benlitz
8a657ea287
input: Removed previous input system
před 12 roky