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 лет назад
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
10 лет назад
Sam Hocevar
2fa398926d
math: improve the 2D and 3D box classes.
Box objects (AABB) now have the long awaited extent() and center()
methods. Corners are now called “aa” and “bb” for convenience. The
WorldEntity class uses a box3 for its AABB instead of two vec3s.
This allows us to simplify a lot of verbose code.
10 лет назад
Sam Hocevar
a07844682e
build: remove dead PS3 code.
10 лет назад
Sam Hocevar
7934df34ef
build: "USE_SDL" is now for SDL v2 and "USE_OLD_SDL" for version 1.
10 лет назад
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
10 лет назад
Sam Hocevar
5dc05d7f3e
build: remove empty directories and add proper svn:ignore flags.
10 лет назад
Sam Hocevar
12aaff89e3
base: huge refactor in vector.h; GCC compilation times down by 50%.
10 лет назад
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
10 лет назад
Sam Hocevar
3c8ef15f0e
gpu: switch some types to enum classes to check C++11 support.
10 лет назад
Sam Hocevar
231d74f1f8
gpu: implement RenderContext::SetBlendEquation().
10 лет назад
Benjamin ‘Touky’ Huet
fd4cb5e350
Added debug stuff
11 лет назад
Benlitz
845a870c9f
gpu: fixed Video::GetSize(), it was previously returning the size of the current viewport, it is now returning the size of the back buffer.
11 лет назад
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
11 лет назад
Sam Hocevar
1b157def49
gpu: add SetDepthMask/GetDepthMask to render contexts.
11 лет назад
Sam Hocevar
c6ffd1ffcf
build: fix the X360 port.
11 лет назад
Sam Hocevar
068a328651
gpu: fix the Direct3D version of most rendering functions.
11 лет назад
Sam Hocevar
f0e8676248
gpu: don't use PolygonMode on GL ES.
11 лет назад
Sam Hocevar
9158677eae
gpu: implement polygon rendering mode in GL and D3D.
11 лет назад
Sam Hocevar
ad8144f0e8
scene: use a global g_scene object instead of Scene::GetDefault().
11 лет назад
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 лет назад
Sam Hocevar
13fb52cebe
gpu: move Video::Clear to Renderer::Clear.
11 лет назад
Sam Hocevar
084a98be87
gpu: framebuffers now use the g_render object to restore viewport data.
11 лет назад
Sam Hocevar
024ea25e27
gpu: disable alpha test on GL ES platforms.
11 лет назад
Sam Hocevar
a75e07d329
gpu: add full support for alpha test in GL and D3D.
11 лет назад
Sam Hocevar
87a9c3730c
gpu: implement all depth test functions in the renderer.
11 лет назад
Sam Hocevar
0b93890556
gpu: implement face culling mode in render contexts.
11 лет назад
Sam Hocevar
45c13689ec
gpu: implement blend function and alpha test in the renderer.
11 лет назад
Sam Hocevar
7c8fc6df12
gpu: move more platform-specific code from Video to Render.
11 лет назад
Sam Hocevar
274a732e3c
gpu: move SetClearColor and SetClearDepth to the Renderer and RenderContext
classes instead of Video.
11 лет назад
Sam Hocevar
1b213612a5
gpu: handle depth test, alpha blending and face culling in Renderer.
11 лет назад
Sam Hocevar
716c2b5592
gpu: create a Renderer and a RenderContext class to handle render states
such as alpha blending, depth test, etc.
11 лет назад