Comments (9)
Today's equivalent would be COG_PLATFORM_WL_VIEW_FULLSCREEN=1 cog -P wl https://threejs.org/examples/#webgl_terrain_dynamic
from cog.
There's an env var, already, I think that's a good start :)
Would be nice though to have runtime keyboard shortcuts so we can easily toggle between fullscreen states.
from cog.
Default window size also has env vars, good for me!
from cog.
@philn, F11 should toggle fullscreen. It is currently hardcoded in -fdo.
from cog.
Sweet, so... what's left for this issue? Not much it seems :)
from cog.
Well, it would be better that the feature is not tied to the FDO platform only; which would need solving #22, I'd say.
from cog.
I couldn't find any documentation for these env vars, the ones defined here seem to be the ones used for fullscreen: https://github.com/Igalia/cog/blob/6f1be78103323bc9e0964b73372e017b6c1b1cb5/platform/cog-platform-fdo.c
For example COG_PLATFORM_FDO_VIEW_FULLSCREEN=1 cog -P fdo https://threejs.org/examples/#webgl_terrain_dynamic
worked for me, using weston with the default desktop shell.
Hope that helps anyone who is looking for how to run this fullscreen
from cog.
Documentation for Wayland platform in: https://github.com/Igalia/cog/blob/master/docs/platform-wl.md
from cog.
I will close this tentatively, as we have ways for:
- Setting default window size.
- Setting fullscreen.
- Toggling fullscreen with
F11
.
While not all plug-ins support those, we can use new issues to tackle that, like #22 mentioned earlier.
from cog.
Related Issues (20)
- Missing cog-export.h header in the cogcore_headers
- gtk4: Pointer coordinates wrongly reported when the window is on a monitor with fractional scaling HOT 1
- [Clean-up] Remove redundant platform safe-guards in core
- Remove cog_platform_init_web_view() from the API
- MouseEvent buttons property not set in wayland backend
- Crash calling wl_pointer_set_cursor() in cog-utils.c HOT 2
- /snap/wpe-webkit-mir-kiosk/101/usr/bin/cog memory increases until it crashes.
- Identifiers for touch points are not constant in multi touch HOT 5
- cog flickering and not HW accelerated on NXP iMX8M-Plus HOT 2
- Latest COG w/DRM backend has no focus HOT 2
- [wpe-2.38.5][wpe-webkit-mir-kiosk] Long touch/press not working
- (wpe-webkit-mir-kiosk) - Launch homepage on idle HOT 3
- DRM key-repeat only repeats once
- Is DRM missing cog_launcher_get_viewport()?
- cogctl ping fails but reload etc works
- Crash due to `SIGTRAP` after `Creating pipes for GWakeup: Too many open files` HOT 2
- Bad rendering of https://ttnmapper.org HOT 1
- Segfault in `wl_list_remove`
- Segmentation fault for drm platform with gles renderer
- Failing to initialize EGL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cog.