Skip to content

enhancing the JmeContext interface #1900

@stephengold

Description

@stephengold

Currently the Acorus user-interface library implements some functionality in DsUtils (using reflection) that should ideally be provided by JmeContext. Specifically:

  • return the dimensions of the context's default frame buffer
  • return the screen coordinates of the top-left corner of the content area

JME code often uses AppSettings or Camera to obtain the dimensions of the default frame buffer. Unfortunately, these classes cache values which could easily become out-of-date or corrupted. The proposed methods would not cache values; they would invoke LWJGL to obtain authoritative and up-to-date values.

The proposed methods should throw exceptions if invoked on a null context or a headless context.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions