New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the emscripten template to allow for starting app without any html decoration #7350
Comments
+1 for Fill Window as default for Release build. |
There are two basic fullscreen options: "real" fullscreen and soft fullscreen. Soft fullscreen (full window) seems to be possible as a default. |
Here are some example that do not look as "expected" with resize canvas (but most do). With expected I mean, that the object is centered or resized:
|
I tried out soft fullscreen recommended by @Jonathhhan and it feels pretty good for the assimp example. A few features to note:
check it out, seems to work on iOS and Safari. |
@NickHardeman very nice :) |
Here is an example that is windowed. I noticed that pressing the Fullscreen button with resize canvas selected does change the canvas resolution which is great. |
I added the option to set the full screen scale strategy on the window. If none is set, then it acts the same as before.
|
@Jonathhhan, I noticed the touches have their id set to i inside the for loop. Any reason it shouldn't be set to the unique identifier? |
Currently all Emscripten builds produce the same sort of html output.
We've been discussing having Debug show the current view, but Release builds being full window by default.
Something like the following:
Debug:
Release:
or
Release:
Some other options would be to have it set via code. It could be done via the window settings in main.cpp, or a static call the later would keep the main.cpp non emscripten specific.
ie:
ofxEmscripten::setLayout(ofxEmscripten::Debug);
ofxEmscripten::setLayout(ofxEmscripten::Minimal);
ofxEmscripten::setLayout(ofxEmscripten::FillWindow);
( not sure if that is the correct api approach, but just to give an idea )
cc @dimitre @Jonathhhan @NickHardeman
Note: I don't think it is possible to have an emscripten app start in Full Screen, but that might be worth looking into at the same time.
The text was updated successfully, but these errors were encountered: