Vladimír Vondruš
da5be83bb3
Platform: update GLContext docs to be similar as Vk::Device/Instance.
...
Because that way it's clearer I think.
5 years ago
Vladimír Vondruš
fa31077789
Platform: sync EmscriptenApp canvas size setup for the contextless case.
...
It was just completely wrong there, probably just forgot to update that.
5 years ago
Vladimír Vondruš
4547f0a4aa
Platform: notify about hardcoded WebGL canvas size in verbose output.
...
Very useful for debugging, because doing that is usually wrong.
5 years ago
Vladimír Vondruš
03ca45bd0c
Platform: fix verbose log for app-specified DPI scaling.
...
It was printing 0 before, which isn't correct. Also why not print both
values? Printing just the first one would hide issues where the second
is accidentally 0 or some other wrong value.
5 years ago
Vladimír Vondruš
2109c0b51e
Platform: hide AndroidApplication::Flags from the header.
...
Like in all other applications.
5 years ago
Vladimír Vondruš
37c031f349
Platform: don't use const or let in EM_ASM(), breaks closure compiler.
...
And add a note there to prevent this from being changed again in the
future.
6 years ago
Pablo Escobar
f94035805d
EmscriptenApplication: use _malloc instead of internal allocate
6 years ago
Vladimír Vondruš
a8b99fb020
Platform: use a branded color.
6 years ago
Vladimír Vondruš
1fe8df400b
Platform: add a TODO about target_link_options().
6 years ago
Vladimír Vondruš
f4201541f1
doc: updated credits and changelog.
6 years ago
Pablo Escobar
f22421247d
Platform: use new CSS classes in gl-info
6 years ago
Pablo Escobar
c3c0010304
Platform: avoid potential race conditions on load.
6 years ago
Pablo Escobar
110e45d0ea
Platform: add test for multiple applications on one page.
6 years ago
Pablo Escobar
673a17fa11
Platform: allow to reuse existing Emscripten Module properties.
...
By wrapping the module creation in a function that includes properties
from the original module as well as allowing to override the default
properties from the outside. This also means it's possible to create
differently named modules for multiple applications on the page.
6 years ago
Pablo Escobar
1fd365773a
Platform: update {Emscripten,Sdl2}App cursor using Module['canvas'].
6 years ago
Pablo Escobar
01b4d8d171
Platform: get EmscriptenApplication canvas target from Module['canvas'].
...
And properly account for -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR.
Module['canvas'] can be read even from code compiled with -s MODULARIZE
so it's a preferrable option to hardcoding it in Configuration. The
target strings in Emscripten depend on whether we're compiled with
DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR (see
https://github.com/emscripten-core/emscripten/pull/7977 ). This is now
detected and handled at runtime to prepend element IDs with and use
the correct window and document magic targets.
6 years ago
Vladimír Vondruš
66c9746986
Platform: switch Emscripten app tests to use CSS classes instead of IDs.
...
Can confirm this worked before and works now as well.
6 years ago
Vladimír Vondruš
832f0ae3fc
Platform: don't hardcode ID in {Emscripten,Sdl}App::setContainerCssClass().
...
Instead look for a closest parent element of our <canvas> having the
.mn-container class. This should thus work for more than one canvas on a
page.
6 years ago
Vladimír Vondruš
2d0c97d4c0
Platform: use CSS classes instead of IDs for Emscripten markup.
...
IDs restrict the usability to a single canvas on the page. For backwards
compatibility purposes those are still kept, but the use is discouraged
now.
6 years ago
Vladimír Vondruš
86a26eb07b
Platform: don't hardcode status and log element IDs for Emscripten.
...
I still need to figure out how to not hardcode a global Module, heh.
6 years ago
Vladimír Vondruš
67a711a101
Platform: I'm sorry for breaking the build.
6 years ago
Vladimír Vondruš
7ce234f60b
Revert "EmscriptenApplication: get correct keyboardListeningElement CSS selector"
...
Not yet sure about all interactions with older Emscripten versions and
DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR set to 0, reverting until
it's clear.
This reverts commit c760acb548 .
6 years ago
Vladimír Vondruš
fc9a2f45d6
Platform: clear the framebuffer in Sdl2Application test.
...
It's unnecessarily hard to verify behavioral consistency across
different app implementations without.
6 years ago
Vladimír Vondruš
4c2aae65b9
Platform: https!
6 years ago
Vladimír Vondruš
e03813643a
Platform: this documentation is wrong.
6 years ago
Vladimír Vondruš
fa733a55ca
doc: updated credits.
6 years ago
Pablo Escobar
c760acb548
EmscriptenApplication: get correct keyboardListeningElement CSS selector
6 years ago
Vladimír Vondruš
321c2d22b9
Platform: improve console output of EmscriptenApplicationTest.
6 years ago
Vladimír Vondruš
08ecbbc380
Platform: fix EmscriptenApplication key events.
...
Got broken in 0f026cd314 . Note to self:
don't delegate testing to third parties.
6 years ago
Vladimír Vondruš
0f026cd314
Platform: port EmscriptenApplication away from deprecated string APIs.
...
And avoid a needless std::string allocation as well, heh.
6 years ago
Vladimír Vondruš
19d1693323
Platform: suppress a warning specific to MinGW GCC 8+.
6 years ago
Vladimír Vondruš
08803885e7
Doc++, updated changelog.
6 years ago
Tracy Ma
6a345ea982
Fix: unable to create gl context on desktop with ANGLE + GLFW3
6 years ago
Vladimír Vondruš
18a05309e9
Platform: added view-taking Platform::GlfwApplication::setWindowIcon().
...
For some reason there's just an initializer-list overload, which is
rather useless.
6 years ago
Vladimír Vondruš
051b715c12
Platform: reference useful APIs and docs from setWindowIcon().
6 years ago
Vladimír Vondruš
8c5a2d6a88
Platform: Xlib strikes again, this time with #define Bool int.
...
THe new MaterialData APIs introduce MaterialAttributeType::Bool and
everything kinda explodes with that.
Seriously, what were the people in 1979 thinking.
6 years ago
Vladimír Vondruš
1f55a11f31
Platform: fix Clang compiler warning about signed/unsigned comparison.
6 years ago
Vladimír Vondruš
8ac9750a81
Platform: properly initialize EmscriptenApp GLConfiguration.
6 years ago
erikwijmans
68aec7b088
Platform: *really* destroy EGL context in WindowlessEglApp destructor.
6 years ago
Vladimír Vondruš
3ceedb3680
Doc++
6 years ago
Vladimír Vondruš
cd48c59cab
Remove remaining APIs deprecated in 2018.10.
6 years ago
Vladimír Vondruš
cb4f6183dc
Doc++, changelog, credits and version marker updates.
6 years ago
Vladimír Vondruš
5222cf3478
doc: change all "latest" additions/deprecations to 2020.06.
6 years ago
Vladimír Vondruš
7547cfd10a
Platform: CMAKE_TOOLCHAIN_FILE should be always absolute.
6 years ago
Vladimír Vondruš
5b7caaee84
CMake: create the output dir before copying a DLL.
...
Otherwise, in case of SDL and GLFW, where we don't really know the DLL
name, it would create a file named `bin` instead of copying into a newly
created bin/ directory if it doesn't exist yet. That happens in case of
a static build, where there are no DLLs and thus
CMAKE_RUNTIME_OUTPUT_DIRECTORY gets never created.
6 years ago
Vladimír Vondruš
23d2ab1d1b
gl-info: modernize output printing a bit, list remaining defines.
6 years ago
Vladimír Vondruš
ff22cb8758
Platform: print EGL device count before overwriting the count variable.
...
Otherwise it would report a wrong count.
6 years ago
Vladimír Vondruš
6ce74205ac
doc: updated credits and changelog.
6 years ago
Vladimír Vondruš
e352fa78ba
Platform: allocate only for how many EGL devices there is.
6 years ago
Vladimír Vondruš
2803ccb241
Platform: minor whitespace, doc and error handling cleanup.
...
In particular, the "likely a driver issue" messages don't apply here.
6 years ago