Giter Site home page Giter Site logo

Comments (5)

dougbinks avatar dougbinks commented on June 15, 2024

GLFW has a number of platform specific hints already, so a PR for this would likely be acceptable.

from glfw.

umlaeute avatar umlaeute commented on June 15, 2024

i'm aware that currently glfw maintains a global display for all its windows....

given the above, should a PR try to keep the current behavior (so selecting a display can only be done before the first window is created) or maintain a display for each window (which might get tricky if the different displays have different capabilities).

i tend towards the former, but then I think the proper function would be glfwInitHintString() (which does not exist yet!).

(note that i haven't checked the code recently, so i might have gotten things wrong)

from glfw.

dougbinks avatar dougbinks commented on June 15, 2024

Out of interest can you rework the application to call init after changing the DISPLAY environment variable?

A change to add per window displays would be pretty large, since the GLFW init uses the display variable to initialize a large number of variables used by all the systems in GLFW. So if a change to add this as an init hint would work for your use case then I think this would be the best way to go.

from glfw.

umlaeute avatar umlaeute commented on June 15, 2024

Out of interest can you rework the application to call init after changing the DISPLAY environment variable?

probably.

so do I understand correctly, that a PR should add a new glfwInitHintString() function (because the existing glfwInitHint() cannot take strings and is therefore not sufficient)

from glfw.

dougbinks avatar dougbinks commented on June 15, 2024

Yes, a new function glfwInitHintString(int hint, const char* value) similar to glfwWindowHintString(int hint, const char* value) looks like the way to do this.

from glfw.

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.