Sam Hocevar
|
96e26a2bd5
|
math: rename Box2D to "box2" and add an integer version, "ibox2".
|
11 years ago |
Sam Hocevar
|
9e236b8946
|
gpu: fix several bugs introduced by the tileset refactoring.
|
11 years ago |
Sam Hocevar
|
cbd3aa1519
|
build: various compilation fixes.
|
11 years ago |
Sam Hocevar
|
2c3092ef28
|
gpu: rename FrameBuffer to Framebuffer.
|
11 years ago |
Benjamin ‘Touky’ Huet
|
0d344595ff
|
Added FrameBufferFormat struct : a wrapper for RenderTarget-format. NOT TESTED on PS3 & DirectX. Default values are the same as previous code, though.
|
11 years ago |
Benjamin ‘Touky’ Huet
|
23f9299a59
|
video : Added SetAlphaBlend() SetFaceCulling() SetCustomSize()
FrameBuffer : Added GetSize() & tweaked Bind()/Unbind() with size update for correct rendering.
|
11 years ago |
Sam Hocevar
|
d34d31dae0
|
base: some refactoring in the tileset class.
|
11 years ago |
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.
|
11 years ago |
Sam Hocevar
|
d4372a6a1e
|
android: open files through the asset manager, meaning Lua works.
|
11 years ago |
Sam Hocevar
|
a6bcbd5e58
|
android: refactor the application code to use fewer free functions.
|
11 years ago |
Sam Hocevar
|
3af7e62b6a
|
android: switch to NativeActivity instead of rolling our own Java crap;
no known regressions yet.
|
11 years ago |
Sam Hocevar
|
ff7904d96c
|
build: big Android build system refactor; we now attempt to build
an apk for each project.
|
11 years ago |
Sam Hocevar
|
ddeaa5f81a
|
build: reorganise automake build system.
|
11 years ago |
Sam Hocevar
|
5e5deb84d2
|
build: fix X360 and PS3 builds.
|
11 years ago |
Sam Hocevar
|
526feb9b80
|
sys: use progressively larger temporary buffers when reading files.
|
11 years ago |
Sam Hocevar
|
75d4503a01
|
ps3: implement very simple audio playback.
|
11 years ago |
Sam Hocevar
|
e041ea7602
|
sys: don't read files on the stack; either we'll overflow or we'll be slow.
|
11 years ago |
Sam Hocevar
|
edd09e08f5
|
ps3: create an audio device at startup.
|
11 years ago |
Sam Hocevar
|
ba58bbbdcd
|
ps3: implement Lua file loading.
|
11 years ago |
Sam Hocevar
|
aeda5c74f7
|
gpu: ugly hack to avoid sprite artifacts on the PS3.
|
11 years ago |
Sam Hocevar
|
8dbe2e5224
|
gpu: only add the half-texel offset on the X360.
|
11 years ago |
Sam Hocevar
|
6a519771f5
|
lua: add support for lua/init.lua in a global World object and give
it a try in MrPigeon.
|
11 years ago |
Sam Hocevar
|
1dee9a6633
|
ps3: check for newly plugged pads at each frame.
|
11 years ago |
Sam Hocevar
|
c54ca8bf40
|
image: try to reuse existing images when loading them, and don't unload
tilesets yet, but make sure the architecture will allow it.
|
11 years ago |
Sam Hocevar
|
d4dcdb75e6
|
gpu: account for the HLSL half-texel offset on the PS3.
|
11 years ago |
Sam Hocevar
|
e6b0bd07bf
|
image: hide the constructor behind a factory so that we can later
return an already created object if necessary.
|
11 years ago |
Sam Hocevar
|
3106fcfd9d
|
image: fix an invalid implicit cast on Win32.
|
11 years ago |
Sam Hocevar
|
f16704ecb0
|
image: GetData returns uint8_t* instead of void*, it's a lot safer.
|
11 years ago |
Sam Hocevar
|
c46b3fbfec
|
image: remove the Image::Format enum and use PixelFormat instead.
|
11 years ago |
Sam Hocevar
|
5a19e1539d
|
misc: fix a few URLs.
|
11 years ago |
Sam Hocevar
|
6e282a674a
|
base: remove some sprintf() calls in profit of string ops.
|
11 years ago |
Sam Hocevar
|
76ff95b587
|
lua: more X360 and NaCl compilation fixes for stuff we don’t need.
|
11 years ago |
Sam Hocevar
|
62870d0894
|
lua: compilation fixes for non-quite-POSIX platforms.
|
11 years ago |
Sam Hocevar
|
45c9e77d58
|
lua: disable Lua signal handling: PS3, X360 or NaCl don't have signal().
|
11 years ago |
Sam Hocevar
|
c59fc670c2
|
core: import pristine lua 5.2.1 in the engine code.
|
11 years ago |
Sam Hocevar
|
18fd5c9081
|
math: try to refactor rand() to bypass an X360 compiler bug.
|
11 years ago |
Sam Hocevar
|
94acb0f519
|
build: the “fuck you, Apple” commit; work around three different
compiler bugs in the Xcode toolchain.
|
11 years ago |
Sam Hocevar
|
1b07850346
|
build: a few iOS build fixes; nowhere near ready though.
|
11 years ago |
Sam Hocevar
|
78636c40ef
|
math: fix the shit I just broke.
|
11 years ago |
Sam Hocevar
|
56f093817d
|
math: don't use the LLU suffix for 64-bit numbers and don't use floorf().
|
11 years ago |
Sam Hocevar
|
700520d4d6
|
math: move rand() to its own header, ensure it only returns
positive values, and add a unit test for rand<int>.
|
11 years ago |
Benjamin ‘Touky’ Huet
|
0abe5573e5
|
easymesh : an ASSERT was not properly setup.
|
11 years ago |
Sam Hocevar
|
9819425ba0
|
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
|
11 years ago |
Sam Hocevar
|
1e95b39a62
|
build: various compilation fixes.
|
11 years ago |
Sam Hocevar
|
be4f7d63b3
|
easymesh: add proper virtual destructors to some classes.
|
11 years ago |
Sam Hocevar
|
3dd8f8118b
|
ps3: fix a bug and add better error reporting in the image loader.
|
11 years ago |
Sam Hocevar
|
b29519602a
|
debug: fewer lines of code in DrawBox().
|
11 years ago |
Benjamin ‘Touky’ Huet
|
ea603d48e3
|
easymesh : Vertex attribute name can now be customize. Vertex declaration code simplification, ASSERT is more understandable.
|
11 years ago |
Sam Hocevar
|
39a8c26fb5
|
base: start removing occurrences of NULL on our long journey to nullptr.
|
11 years ago |
Sam Hocevar
|
872efdb880
|
debug: add Debug::DrawLine() and Debug::DrawBox() methods.
|
11 years ago |