Sam Hocevar
c7fa8939f5
Fix a few build issues when features are disabled.
преди 7 години
Sam Hocevar
783fdbab98
Implement Franke’s function and Matlab’s peaks for reals.
преди 7 години
Sam Hocevar
5bd042ce01
Implement split() for std::string.
This is the beginning of the removal of lol::String which is not really
useful once all its tiny utility functions are implemented for std::string.
преди 7 години
Sam Hocevar
0239617197
Various compilation and warning fixes.
преди 7 години
Sam Hocevar
845d3878ff
Fix compilation of sprite sample.
преди 7 години
Sam Hocevar
1db2c5ca0f
Allow ! and bool operators on polynomials.
This allows us to manipulate polynomials of polynomials. Not sure why yet,
but it could be useful to implement 2-variable polynomials.
преди 7 години
Sam Hocevar
44e39867b1
Fix approximately 80 billion compilation warnings.
преди 7 години
Sam Hocevar
03b00d6f24
Mingw64 compilation fixes.
преди 7 години
Sam Hocevar
ff0ff83d98
Update EXTRA_DIST in several makefiles.
преди 7 години
Sam Hocevar
29b41d9c08
Fix typo in nodiscard attribute feature detection.
преди 7 години
Sam Hocevar
a94e477f7f
Parse build.config in configure.ac.
This gives us a reasonably cross-platform way to to build options. Works
well with LolRemez, where we no longer depend on GUI libraries.
преди 7 години
Sam Hocevar
2c671158a1
If SDL is disabled on Windows, build a console application.
преди 7 години
Sam Hocevar
7e17bd8a8d
Exclude SDL source files from .vcxproj if enable_sdl is "no".
преди 7 години
Sam Hocevar
c6daf5be39
Refactor the msbuild feature selection mechanism.
Rename config-build.xml to build.config, move it to the root directory,
and add MSBuild flags for SDL, FFmpeg (unused yet) and OpenGL.
преди 7 години
Sam Hocevar
3e26164dc9
Add --enable-png configure flag.
преди 7 години
Sam Hocevar
5b21579db4
Add --disable-opengl flag.
This flag disables GL, GLES, but also Glew and EGL libraries.
преди 7 години
Sam Hocevar
fcd72f408f
Allow master projects to disable features.
When built as a subproject, we need the master to decide what features
to activate or not. This could lead to reduced dependences.
This patch also allows to build without imlib2.
преди 7 години
Sam Hocevar
4e313aa810
Fix unused variable warnings in the polynomial code.
преди 7 години
Sam Hocevar
7be150b0e4
Allow to build without SDL or ffmpeg.
Linux-only for now. This will be necessary for projects that do not
actually use the rendering engine, such as LolRemez.
преди 7 години
Sam Hocevar
2df8762d47
Migrate to Visual Studio 2017.
преди 7 години
Sam Hocevar
fe99aca67d
Use [[nodiscard]] in a lot of places.
This will let us detect problems with unused return values. For instance,
if you don’t remember that normalize(q) returns a pointer and expect it
to modify the object, you’ll get this warning:
warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
quat q(1,2,3,4); normalize(q);
^~~~~~~~~ ~
преди 7 години
Sam Hocevar
9981cf4ce9
Make some AVL tree code less verbose.
преди 7 години
Sam Hocevar
c86f703dcf
Some Windows compilation fixes + support for [[nodiscard]].
преди 7 години
Sam Hocevar
b9effc8977
Fix erratic indentation and file encoding.
преди 7 години
Sam Hocevar
9bdb67a51a
Fix source file encoding.
преди 7 години
Sam Hocevar
aca1660e1e
Disable debug messages by default and downgrade a few messages.
From now on, msg::debug will not display anything, unless this is a debug
build, or the LOL_DEBUG environment variable is set.
преди 7 години
Sam Hocevar
1733d0ffd8
math: tweak the real number printing routine.
By adding a bias we ensure that 1.999… will be displayed as 2.0 as long as we
do not ask for too many digits, and that rounding is reasonable for most values.
Note that our need for proper rounding is not as high as for IEEE floats since
we have an insane amount of digits at our disposal.
Also we now get rid of trailing zeroes when printing reals.
преди 7 години
Sam Hocevar
17db5be5c8
math: remove some hardcoded stuff from the real numbers implementation.
преди 7 години
Sam Hocevar
df7454b36a
math: add real::R_MIN and real::R_MAX and get rid of real::ulp().
преди 7 години
Sam Hocevar
60ee86f908
ufiodsfiodsifods
преди 7 години
Sam Hocevar
f9058a384d
3rdparty: upgrade PEGTL to its latest version (2.1.4 or something).
преди 7 години
Sam Hocevar
7e69ef4cfa
build: fix bluenoise.cpp compilation.
преди 7 години
Sam Hocevar
5d62baaaae
math: parse hexadecimal reals as per C standard, 6.4.4.2.
преди 7 години
Sam Hocevar
7b9d98109b
math: use exponentiation by squaring for real::pow().
преди 7 години
Sam Hocevar
2e696e7b32
build: fix compilation on MSYS2 when glew is not available. Fixes #8 .
преди 7 години
Sam Hocevar
8f3f1736d8
build: fix multiple definition of EXTRA_DIST.
преди 7 години
Sam Hocevar
ee622b762f
build: add several missing distributed files for Windows versions.
преди 7 години
Sam Hocevar
26e60e45fc
getopt: fix an assert triggered in the Windows runtime.
преди 7 години
Sam Hocevar
7b2f3bdcfb
samples: add blue noise generation demo.
преди 7 години
Sam Hocevar
e38a7e7c22
tools: remove lolremez.
It will now be available at https://github.com/samhocevar/lolremez
преди 7 години
Sam Hocevar
c6374c7e07
movie: replace the old Movie class with a GIF encoder.
преди 7 години
Sam Hocevar
f42fda8281
Merge branch 'master' into ffmpeg_encoding
преди 7 години
Sam Hocevar
7558d0664a
image: more method renaming for consistency.
преди 7 години
Sam Hocevar
e3b1011d37
image: rename some stuff.
преди 7 години
Sam Hocevar
a45a0d45d1
audio: do not free buffers that SDL may be using.
преди 8 години
Sam Hocevar
3544e76a4d
input: fix uninitialised variable.
преди 8 години
Sam Hocevar
a3a802e88f
Update PEGTL submodule to latest upstream branch.
преди 8 години
touky
9054294772
Merge remote-tracking branch 'refs/remotes/origin/lolperso_changes'
преди 8 години
touky
a68b433ccc
Merge remote-tracking branch 'origin/lolperso_changes' into lolperso_changes
преди 8 години
touky
ea93e0fecc
baselua fix
return 1 added after sam remark
преди 8 години