API Change Proposal - Re: MSAA and Scene anti aliasing

Chien Yang chien.yang at oracle.com
Tue Jul 23 13:29:29 PDT 2013


Hi all,

     We appreciate all the feedback you have contributed to this topic. 
After listening to the feedback and an internal discussion, we would 
like to propose a minor change to the API for supporting scene 
anti-aliasing. We intentionally choose not to expose the number of 
samples and techniques used in this release, but this doesn't preclude 
future addition when the time is right for more options. This change 
will be tracked by RT-31878 (https://javafx-jira.kenai.com/browse/RT-31878):

Anti-aliasing API Change Proposal:

Constructors remove:
public Scene(Parent root, double width, double height, boolean 
depthBuffer, boolean antiAliasing)
public SubScene(Parent root, double width, double height, boolean 
depthBuffer, boolean antiAliasing)

Constructor add:
public Scene(Parent root, double width, double height, boolean 
depthBuffer, SceneAntiAliasing antiAliasing)
public SubScene(Parent root, double width, double height, boolean 
depthBuffer, SceneAntiAliasing antiAliasing)

Note:The antiAliasing argument will be used if the underlying graphics 
driver has anti-aliasing support.

Where SceneAntiAliasing is an enum with the following entries at the 
moment:

public enum SceneAntiAliasing {
     DISABLED, // disables anti-aliasing
     DEFAULT, // enables anti-aliasing using a default system setting 
available that balances speed and quality
     FASTEST, // enables anti-aliasing using minimum system setting 
available that results in better frame rate
     NICEST // enables anti-aliasing using maximum system setting 
available that results in best visual quality
}

Thanks,
- Chien


More information about the openjfx-dev mailing list