Implemented on GIT Android Multi-sampling support

grant

Member
CX Code Contributor
3rd Party Module Dev
Joined
Nov 19, 2019
Messages
81
It would be nice to have a config.cxs option to enable 2x and 4x multi-sampling to the Android target. https://stackoverflow.com/a/43579230/10296995

I attached a Java file based on that stack overflow post except it tries 4x before trying 2x. It falls back to none.

add this to Cerberus/targets/android/modules/native/androidgame.java just before calling _view.setRenderer.
Code:
_view.setEGLConfigChooser(new MultisampleConfigChooser());

and add this to Cerberus/targets/android/modules/cerberustarget.cxs
Code:
Import "native/MultisampleConfigChooser.java"

I'm not sure how to make config options for the Android target.
 

Attachments

  • MultisampleConfigChooser.java
    4.8 KB · Views: 22

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,168
As nobody mentioned any problems, I moved it to the develop branch.
 
Top Bottom