jMonkeyEngine / jMonkeyEngine/jmonkeyengine

LWJGL3 Window Utilities

Open
#1,152 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

Since this is purely aimed at conveniences, I can see opinion going either way on this, so checking interest before I bother with a PR.

Suggest an LwjglUtil class (for LWJGL3 only, since 2 already has this) which would have static methods for common window or display manipulation, something like this:

    public static int getWindowX(JmeContext context);
    public static int getWindowY(JmeContext context);
    public static void setWindowPosition(JmeContext context, int xPos, int yPos);

    public static int getWindowWidth(JmeContext context);
    public static int getWindowHeight(JmeContext context);
    public static void setWindowSize(JmeContext context, int width, int height);

    public static int getPrimaryMonitorWidth();
    public static int getPrimaryMonitorHeight();

LWJGL2 already has something like this in Display (ex. Display.setLocation()), but I don't believe 3 has a similar interface, and it looks a little more inconvenient to interact with (point me in the right direction if I'm missing something). This would be in jme3-lwjgl3, probably com.jme3.util.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the jme3-lwjgl3 module and the existing LWJGL2 Display utilities, especially Display.setLocation(). Define whether the proposed LwjglUtil API belongs in com.jme3.util, then identify the corresponding LWJGL3 window and primary-monitor operations and tests needed to demonstrate the requested behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.