openframeworks / openframeworks/openFrameworks
Update the emscripten template to allow for starting app without any html decoration
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Emscripten template and the window settings in main.cpp. Compare the current generated HTML for Debug and Release builds, then determine whether layout selection belongs in the template or an API such as ofxEmscripten::setLayout. Done means the requested layouts are selectable and the fullscreen limitation has been investigated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, wasm
- Domain
- build-system, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100