Sam Hocevar
9d4b7ff456
Refactor header usage to use our core submodule instead.
5 years ago
Sam Hocevar
47aa41dcb9
scene: rename a few things for clarity.
6 years ago
Sam Hocevar
1186c08ad7
entity: add a flag system.
This lets us get rid of m_autorelease and m_destroy and we’ll be able
to implement init_game/init_draw later, for stuff that must happen
on the render thread.
6 years ago
Sam Hocevar
06edad8755
scene: remove useless subobject classes.
6 years ago
Sam Hocevar
1f9be92a66
Use smart pointers in a lot of the rendering code.
7 years ago
Sam Hocevar
4c9c63894d
Allow to resize the SDL window and propagate changes to the scene.
7 years ago
Sam Hocevar
beeded3d85
render: simplify Renderer code
The scene now owns its renderer, so there is no need to keep a list
of existing renderers and to call Renderer::Get().
7 years ago
Sam Hocevar
104704391b
SDL: allow fullscreen applications.
If resolution is set to (0,0) then a fullscreen app is created.
7 years ago
Sam Hocevar
44e39867b1
Fix approximately 80 billion compilation warnings.
8 years ago
touky
575ef8e497
DebugDrawContext pass
Seems to still build in lol, will check other works to be sure
9 years ago
Sam Hocevar
25ad63d33d
scene: add Scene::pre_render and post_render
This allows actors to perform draw commands in TickDraw(), even
if it’s not exactly what we want in the future.
9 years ago
Sam Hocevar
3a90766614
scene: start working on a postprocess mechanism.
Not all programs support this feature for now, but that’s because they
don’t support the scene framework either, and will need patching. Also
the default postprocess is deliberately exaggerated for now.
9 years ago
Sam Hocevar
cfaa27df47
scene: change sprite tile angles to radians.
9 years ago
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
10 years ago
Sam Hocevar
6f1b4353a8
scene: make the sprite tile API use matrices internally.
The old public API is maintained for now but should be considered
deprecated.
10 years ago
Sam Hocevar
5ea13fc857
scene: clean up a few things here and there.
10 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
Benjamin ‘Touky’ Huet
6ab67e8f86
btPhysTest is working again, but it still has 7 Ticker::Unref(Shader) that should be there ......
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
Sam Hocevar
4472d31612
scene: minor fix for compilation warnings.
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
Benjamin ‘Touky’ Huet
49e1588f52
MultiScene: Phase 3: Small PrimitiveSource & PrimitiveRenderer tweaks
10 years ago
Benjamin ‘Touky’ Huet
51a4b892c7
MultiScene: Phase 3: Added PrimitiveSource & PrimitiveRenderer and corresponding rendering pipeline
10 years ago
Benjamin ‘Touky’ Huet
22322d50fd
Scene::AddPrimitive now only supports Primitive because why not
10 years ago
Benjamin ‘Touky’ Huet
a7d6e0190e
Scene stuff is back to non-static logic with a few tricks
Scene rendering logic is now better
10 years ago
Sam Hocevar
732ba3802b
scene: fix a pretty verbose compilation warning.
10 years ago
Benjamin ‘Touky’ Huet
71ee91fcb1
MultiplMultiScene: Phase 2: No more g_scene access and multiple scene calls support
10 years ago
Benjamin ‘Touky’ Huet
cfcff9acc3
MultiScene: Phase 1: g_scene removal and conversion to Scene::
10 years ago
Sam Hocevar
d8aa8b3d06
build: add missing #include directive.
10 years ago
Benjamin ‘Touky’ Huet
73f729d2ef
MeshViewer refactor is on good way
Reworked Primitive logic for scene rendering
FileUpdateTester works now .....
10 years ago
Sam Hocevar
7e04bd038a
scene: remove functions that aren’t that useful.
11 years ago
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.
11 years ago
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
11 years ago
Sam Hocevar
79ed58f1f0
Merge branch 'master' into scenegraph
11 years ago
Benjamin ‘Touky’ Huet
fe7f7b9fdb
Added Base directory logic similar to File class, with windows only implementation -for now-
Added tile cam index to have tileset available with other 3d stuff ..... 2014 is now !
11 years ago
Sam Hocevar
32143b8bb4
scene: allow to rotate sprites around the Z axis.
11 years ago
Benjamin ‘Touky’ Huet
dbb1d02aa6
Added 2D to 3D DebugLines
11 years ago
Benjamin ‘Touky’ Huet
cc8e6ced51
Added Debug DrawBox+DrawCapsule+DrawCircle+DrawSphere for ze lulz
11 years ago
Benjamin ‘Touky’ Huet
b1fbc0259f
Added Mask & StickyTime to Draw Debug
11 years ago
Sam Hocevar
1945e85afc
scene: start working on the scene class reorganisation.
12 years ago
Sam Hocevar
f193bc2caa
scene: break text rendering again so that 2D games work properly...
12 years ago
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
12 years ago
Sam Hocevar
872efdb880
debug: add Debug::DrawLine() and Debug::DrawBox() methods.
13 years ago
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.
13 years ago
Sam Hocevar
0ba4e6d9e0
easymesh: interface the shiny shader with new Light objects.
13 years ago
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
13 years ago
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
13 years ago
Sam Hocevar
bfada5d920
core: move some of the camera view logic from the Video class to the
Scene and Camera classes.
13 years ago
Sam Hocevar
f35f4284b0
core: allow each blitted tile to be stretched differently.
13 years ago