jMonkeyEngine / jMonkeyEngine/jmonkeyengine
LWJGL3 Window Utilities
Nobody has claimed this yet.
- 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
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 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