Sam Hocevar
08cd8435da
SDL: remove dead code.
6 years ago
Sam Hocevar
6dd7a0cb39
Another lowercase switching frenzy, because why not.
6 years ago
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
6 years ago
Sam Hocevar
0239617197
Various compilation and warning fixes.
7 years ago
Sam Hocevar
89a8add7bf
audio: reorganise files
8 years ago
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.
8 years ago
Sam Hocevar
969911a10a
gpu: remove 1200 lines of old DirectX 9 code.
8 years ago
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
9 years ago
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
10 years ago
Sam Hocevar
d64b117b8d
build: fix license and copyright information.
10 years ago
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.
10 years ago
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.
10 years ago
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
10 years ago
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
10 years ago
Sam Hocevar
4374db93c4
input: use key scancodes everywhere, but add a small fallback for SDL1.2.
10 years ago
Sam Hocevar
7934df34ef
build: "USE_SDL" is now for SDL v2 and "USE_OLD_SDL" for version 1.
10 years ago
Sam Hocevar
d37d124849
sdl: SDL2 video and audio support (no input yet).
10 years ago
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
10 years ago
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
10 years ago
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
11 years ago
Benlitz
8a657ea287
input: Removed previous input system
11 years ago
Lolbot
c47d0f8c62
fixed 10 files out of 2754:
- removed 386 CR characters
- removed 4 trailing whitespaces
- replaced 189 tabs with spaces
11 years ago
Benlitz
a7aac24c46
Completely reworked input system. Unified device interface, button, axis and cursor support, controller and binding system, mouse capture. Tutorial 07_input provided. Require to compile lolcore with LOL_INPUT_V2 to be activated (also needed app-side before including core.h)
11 years ago
Sam Hocevar
532f679f8a
gpu: get rid of the global D3D device pointer and move D3D initialisation
code from the Video to the Renderer class.
11 years ago
Sam Hocevar
1ffa61c572
input: activate SDL input with Emscripten.
12 years ago
Sam Hocevar
551fea7ed7
build: use GLES (not GL) when using emscripten, and disable SdlInput too.
12 years ago
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
12 years ago
Sam Hocevar
32753fa130
build: fix a few macro logic issues in SDL.h inclusion.
12 years ago
Sam Hocevar
1e973c81bd
build: add SDL detection code in new file lol-sdl.m4. The SDL2 version is
disabled until the engine code itself is ported to SDL2.
12 years ago
Sam Hocevar
39cd7a1fd0
build: revert the weak symbol work; it confuses Visual Studio too much.
12 years ago
Sam Hocevar
d3af7653c0
build: provide weak symbols for lol_sdl_main on Visual Studio.
12 years ago
Sam Hocevar
96256f45ce
build: use our own main() wrapper in addition to SDL's, and only
in that case. Currently only works with GCC.
12 years ago
Sam Hocevar
f44e3e323b
core: you can now while(app.MustTick()) { Tick(); } instead of app.Run().
12 years ago
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 years ago
Sam Hocevar
0f14383241
build: split the D3d9 build flags into D3d9 and Xinput for situations where
we want Xinput but not D3D (ie. OpenGL).
12 years ago
Sam Hocevar
9b5880936c
build: tweak everything to allow building with SDL on the Raspberry Pi.
12 years ago
Sam Hocevar
70f992bb36
win32: add an Xinput class for Xbox360 controllers, because they're not
properly detected using the generic SDL driver.
13 years ago
Sam Hocevar
fe9bab81c1
gpu: fix a great lot of Direct3D problems, spotted using PIX.
13 years ago
Sam Hocevar
48c7070243
gpu: replace exit(0) in D3D error checks with lol::Abort().
13 years ago
Sam Hocevar
88f10fe54b
build: allow to build the Direct3D 9 driver with the mingw compiler.
13 years ago
Sam Hocevar
090834b149
win32: start porting the graphical backend to DirectX 9. Apparently I
cannot used DirectX 10 because my video card only supports DX9, and there
is no compatibility layer. DX11 has feature levels for older hardware so
it would work with a DX9 card, but it's not available for WinXP.
13 years ago
Sam Hocevar
0161879a84
core: try to merge Ticker and Emcee. Still not very good.
13 years ago
Sam Hocevar
5d42f27259
tutorial: port the Mandelbrot dithering shader to Cg.
13 years ago
Sam Hocevar
8ec5fff6df
core: implement Application::ShowPointer() so that applications can choose
whether to use the system mouse pointer or not.
13 years ago
Sam Hocevar
8deb365040
core: write a generic application class.
13 years ago
Sam Hocevar
b111f7e3d8
core: move platform-specific code to specific directories.
13 years ago
Sam Hocevar
6bbe943492
core: rename vec2i to ivec2 etc. to better match GLSL.
13 years ago
Sam Hocevar
e750e82332
gl: initialise Glew in the video setup instead of the SDL app, so we don't
have to duplicate this code to other places. Fixes the GTK app on the way.
13 years ago
Sam Hocevar
666efd14ee
gl: use Glew if available.
13 years ago
Sam Hocevar
cc05a63bb7
video: get rid of Video::GetWidth() and Video::GetHeight().
14 years ago