Giter Site home page Giter Site logo

Fullscreen support about cog HOT 9 CLOSED

igalia avatar igalia commented on August 23, 2024
Fullscreen support

from cog.

Comments (9)

davidperrenoud avatar davidperrenoud commented on August 23, 2024 2

Today's equivalent would be COG_PLATFORM_WL_VIEW_FULLSCREEN=1 cog -P wl https://threejs.org/examples/#webgl_terrain_dynamic

from cog.

philn avatar philn commented on August 23, 2024

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.

philn avatar philn commented on August 23, 2024

Default window size also has env vars, good for me!

from cog.

elima avatar elima commented on August 23, 2024

@philn, F11 should toggle fullscreen. It is currently hardcoded in -fdo.

from cog.

philn avatar philn commented on August 23, 2024

Sweet, so... what's left for this issue? Not much it seems :)

from cog.

aperezdc avatar aperezdc commented on August 23, 2024

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.

concreted avatar concreted commented on August 23, 2024

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.

manuelafm avatar manuelafm commented on August 23, 2024

Documentation for Wayland platform in: https://github.com/Igalia/cog/blob/master/docs/platform-wl.md

from cog.

aperezdc avatar aperezdc commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.