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 година
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 година
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
пре 10 година
Sam Hocevar
a07844682e
build: remove dead PS3 code.
пре 11 година
Sam Hocevar
f8b29001cd
base: convert map and avl_tree methods to lowercase. Because.
пре 11 година
Sam Hocevar
42a5296207
gpu: use PEGTL to split lolfx files into different parts.
пре 11 година
Benjamin ‘Touky’ Huet
cb7a99bac3
Added ShaderBuilder
пре 11 година
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
пре 11 година
Sam Hocevar
ad9a388e80
misc: remove 100% of the "using namespace std;" madness.
пре 11 година
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
пре 11 година
Sam Hocevar
3862ad59dc
base: going on a lowercase rampage; today’s victim: Array.
пре 11 година
Sam Hocevar
7e9f926c43
base: switch map, hash, array2d and array3d to lowercase, like standard
C++ containers.
пре 11 година
Sam Hocevar
79ed58f1f0
Merge branch 'master' into scenegraph
пре 11 година
Sam Hocevar
b5672a6f61
neercs: refactor the shader system.
пре 11 година
Sam Hocevar
44dec8612e
core: fix minor Windows and Raspberry compilation issues.
пре 11 година
Sam Hocevar
47e71bda63
base: rough implementation of safe enums with minimal ToString() support.
пре 11 година
Sam Hocevar
7e769d6c79
base: make the safe enums slightly safer. :-)
пре 11 година
Benjamin ‘Touky’ Huet
1e4af19a89
Praise the Safe-Enum.
Implemented Safe-Enum for everyone.
Now the power is in the Safe-Enum for all.
пре 11 година
Sam Hocevar
c9b8ff54a1
misc: some refactoring in texture handling.
пре 11 година
Sam Hocevar
73891294fe
gpu: fix a buffer overflow in our shader compilation wrapper.
пре 12 година
Benjamin ‘Touky’ Huet
7c3dab6af9
Fixed an error for Emscripten.
пре 12 година
Sam Hocevar
a7d169caff
ps3: some compilation fixes.
пре 12 година
Sam Hocevar
9cfe17fd8b
core: fix some minor compiler warnings.
пре 12 година
Benlitz
b07f6aba93
mesh: submesh class working, can be rendered with any compatible shader without caring of attributes
пре 12 година
Benlitz
f104674963
gpu: removed attribute name, everything works using semantic only now. For glsl, semantic is determined from the attribute name which must follow this pattern: in_[Semantic][index], index being optional. Note: this may break most of the projects although I tried to updated every shader accordingly
пре 12 година
Benlitz
1a2bfe6609
gpu: fixed vbo attribute binding when one of the attribute on the buffer does not exist in the shader
пре 12 година
Lolbot
8cc04f0ba9
fixed 7 files out of 2745:
- removed 0 CR characters
- removed 21 trailing whitespaces
- replaced 42 tabs with spaces
пре 12 година
Benlitz
3fc469b1f6
shaders now cache attribute location once they have been retrieved for the first time.
пре 12 година
Sam Hocevar
c6ffd1ffcf
build: fix the X360 port.
пре 12 година
Sam Hocevar
532f679f8a
gpu: get rid of the global D3D device pointer and move D3D initialisation
code from the Video to the Renderer class.
пре 12 година
Lolbot
cbb4dadd6c
fixed 4 files out of 2730:
- removed 24 CR characters
- removed 1 trailing whitespaces
- replaced 63 tabs with spaces
пре 12 година
Benlitz
d13a006945
SetMagFiltering and SetMinFiltering for class Texture.
пре 12 година
Sam Hocevar
95369e26db
base: a few minor style tweaks.
пре 12 година
Sam Hocevar
6e282a674a
base: remove some sprintf() calls in profit of string ops.
пре 12 година
Sam Hocevar
39a8c26fb5
base: start removing occurrences of NULL on our long journey to nullptr.
пре 12 година
Sam Hocevar
9f6814fbd8
gpu: fix PS3 compilation caused by wrong function names.
пре 13 година
Sam Hocevar
e960628223
gpu: allow to set array uniform values.
пре 13 година
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
пре 13 година
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
пре 13 година
Sam Hocevar
84a308af4e
gpu: warn when a vertex shader attribute isn’t found and do not crash
when a stream is not found in the vertex declaration at bind time.
пре 13 година
Sam Hocevar
0149c30df4
core: refactor the Hash class so that we can hash base types, too.
пре 13 година
Sam Hocevar
549566cbf1
lolfx: use square brackets to indicate shader sections.
пре 13 година
Sam Hocevar
4fc8ce6470
gpu: now shaders can only be created from a LolFx file.
пре 13 година
Sam Hocevar
544f1e873b
gpu: increase default minimum shader model.
пре 13 година
Sam Hocevar
7d5fe8a7c6
gpu: create the ShaderTexture class, replace Shader::SetTexture with a
Shader::SetUniform override, and implement most of the FBO code for
the Direct3D backend.
пре 13 година
Sam Hocevar
23ab462042
gpu: try to patch some simple GLSL shaders on the fly so that they
work on OpenGL ES contexts.
пре 13 година
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
пре 13 година
Sam Hocevar
2feb505b72
gpu: be more verbose about shader compilation; some warnings are useful.
пре 13 година
Sam Hocevar
286c5edeb6
neercs: some refactoring.
пре 13 година