Vladimír Vondruš
1bc8c92d15
Merge branch 'master' into compatibility
...
Conflicts:
src/Color.h
src/SceneGraph/Object.hpp
13 years ago
Vladimír Vondruš
b9b9c38371
SceneGraph: fix infinite recursion problems.
...
Spotted by MSVC. The virtual interface isn't used much anyway, so it
wasn't detected until now.
13 years ago
Vladimír Vondruš
bdfab39a89
external: use GCC-specific flags only for GCC/Clang.
13 years ago
Vladimír Vondruš
14ea7dd072
DebugTools: fix linking on Windows.
...
MSVC complained about dllexporting already exported interface or what.
MinGW doesn't care.
13 years ago
Vladimír Vondruš
c2a2ca88e4
SceneGraph: fix assertion expression.
...
We should have used == instead of =, the counter is set to that value
later anyway, so this didn't break anything... but the assert was
useless. Hopefully it won't fire each time now :-)
13 years ago
Vladimír Vondruš
e3bf8070b5
Don't return after std::abort().
...
MSVC marks that as unreachable code, which is.
13 years ago
Vladimír Vondruš
219429aeba
No need to have const members in AbstractShaderProgram::Attribute.
...
Someone might someday want to copy them somehow, restricting that
doesn't improve anything.
13 years ago
Vladimír Vondruš
e4cf804ec4
Use proper numeric literals.
...
Thanks to MSVC for these.
13 years ago
Vladimír Vondruš
ee045d261a
Make some type conversions explicit.
...
Fixes a bunch of MSVC warnings.
13 years ago
Vladimír Vondruš
013894a264
MSVC 2013 compatibility: we need to include all the dependencies.
...
No way we could include them only in cases where they actually get used.
13 years ago
Vladimír Vondruš
530bb1fc1f
MSVC 2013 compatibility: that thing doesn't like typename here.
...
Although all other compilers _do want_ the typename there.
13 years ago
Vladimír Vondruš
90d85a43db
Merge branch 'master' into compatibility
...
Conflicts:
src/Math/Vector.h
13 years ago
Vladimír Vondruš
49b3c9121e
external: updated std::optional with fixed MSVC 2013 port.
13 years ago
Vladimír Vondruš
2c711a1bb6
MSVC 2013 compatibility: need to explicitly specify POD constructor.
...
I think this is the only place where it fails and it works flawlessly in
other cases. Again, why?!
13 years ago
Vladimír Vondruš
b1d708b4fb
MSVC 2013 compatibility: can't have anonymous typed enum in template class.
...
I think I rather don't want to know in what shape the compiler
implementation needs to be to have this kind of bugs.
13 years ago
Vladimír Vondruš
51e8e546a2
MSVC 2013 compatibility: workarounds for friend function declarations.
...
This is perfectly valid C++03 code, but MSVC can't cope with the <> in
it, so we need to make all templates friends, not only the
particular one. Sometimes it's internal compiler error, sometimes only
cryptic error message.
13 years ago
Vladimír Vondruš
74fcce641a
MSVC 2013 compatibility: more {}-related workarounds.
...
These don't lead to internal compiler errors, but still generate cryptic
error messages.
13 years ago
Vladimír Vondruš
3d3eb8cc8f
MSVC 2013 compatibility: workarounds for {}-related compiler crashes.
...
Initializing values with {} instead of () sometimes leads to internal
compiler error. How amusing.
13 years ago
Vladimír Vondruš
1004d33c7c
MSVC 2013 compatibility: workaround for "can't deduce T" bug.
...
Somehow it's not possible to deduce template parameter if used as
default function arguments. You just can't make this up.
13 years ago
Vladimír Vondruš
6f2485a326
MSVC 2013 compatibility: no Unicode character/string literals.
13 years ago
Vladimír Vondruš
e3168b6a02
MSVC 2013 compatibility: no user-defined literals.
13 years ago
Vladimír Vondruš
cb00fdce57
MSVC 2013 compatibility: some explicit typing is needed.
13 years ago
Vladimír Vondruš
413bd4639e
MSVC 2013 compatibility: constexpr-related issues.
13 years ago
Vladimír Vondruš
25c8c87c1f
SceneGraph: fixed floating-point literals in test.
13 years ago
Vladimír Vondruš
4e0f8ff097
SceneGraph: remove integer TranslationTransformation template instance.
...
We can now use the *.hpp for that even on Windows.
13 years ago
Vladimír Vondruš
e38be052a0
SceneGraph: need to mark the instances with extern template on Windows.
...
Otherwise they don't get properly imported from the DLL. Also the
instantiations don't have to be marked, so mark them as such only on
non-Windows.
13 years ago
Vladimír Vondruš
6a3103e03e
SceneGraph: no need to mark the templates with export macros.
13 years ago
Vladimír Vondruš
3b666d85f4
SceneGraph: instantiate everything consistently on one place.
13 years ago
Vladimír Vondruš
9cb3d17ad9
SceneGraph: fix function signature.
...
Fixes compilation error on MSVC.
13 years ago
Vladimír Vondruš
ddc466a796
SceneGraph: use proper library for tests where graceful assert is wanted.
13 years ago
Vladimír Vondruš
eb877b31ba
SceneGraph: removed *Transformation::move().
...
The original purpose was to allow modifying of drawing order, but this
doesn't affect that at all (the order is preserved in DrawableGroup),
thus the functions are useless.
13 years ago
Vladimír Vondruš
13351f9371
Install all *TestLib libraries on Windows.
...
They are needed when running tests.
13 years ago
Vladimír Vondruš
658839446c
No need to explicitly specify default template parameter.
13 years ago
Vladimír Vondruš
8f12f2a844
Math: simplified internal Vector constructor.
...
Use size we want, not size we got.
13 years ago
Vladimír Vondruš
b6f99db0ad
MSVC 2013 compatibility: need explicit typing for addTests().
...
This annoys the hell out of me.
13 years ago
Vladimír Vondruš
581ce482ea
MSVC 2013 compatibility: more workarounds for array-initialization bug.
...
Follow-up to e2180ee85b .
13 years ago
Vladimír Vondruš
82a8510877
external: updated std::optional with MSVC 2013 compatibility.
13 years ago
Vladimír Vondruš
37e4c9f406
Merge branch 'master' into compatibility
13 years ago
Vladimír Vondruš
6469427f97
Updated std::optional from Optional repository.
13 years ago
Vladimír Vondruš
545e07c85b
Math: use proper suffixes for floating-point literals.
...
Catched by MSVC (ha!).
13 years ago
Vladimír Vondruš
e2180ee85b
MSVC 2013 compatibility: work around array-initialization bug.
...
As described in http://stackoverflow.com/questions/19877757/workaround-for-error-c2536-cannot-specify-explicit-initializer-for-arrays-in-vi
and http://connect.microsoft.com/VisualStudio/feedback/details/792161/constructor-initializer-list-does-not-support-braced-init-list-form .
13 years ago
Vladimír Vondruš
974f68a030
MSVC 2013 compatibility: worked around some initializer list bug.
13 years ago
Vladimír Vondruš
e01e56dade
MSVC 2013 compatibility: apparently can't have multiply defined aliases.
...
Also very annoying bug.
13 years ago
Vladimír Vondruš
4c4dc8ae75
MSVC 2013 compatibility: no rvalue references for *this.
13 years ago
Vladimír Vondruš
d720330425
MSVC 2013 compatibility: no user-defined literals.
13 years ago
Vladimír Vondruš
2b5f71b52d
MSVC 2013 compatibility: no Unicode char/string literals.
13 years ago
Vladimír Vondruš
2292469155
MSVC 2013 compatibility: constexpr-related issues.
13 years ago
Vladimír Vondruš
52fc92cb48
MSVC 2013 compatibility: no unrestricted unions.
13 years ago
Vladimír Vondruš
51f7230ed2
MSVC 2013 compatibility: added missing headers.
...
Not sure how this is done in GCC and Clang, they don't need ~60k LOC
<algorithm> just for std::max().
13 years ago
Vladimír Vondruš
aa04443d01
package: updated URL in development PKGBUILDs.
13 years ago