Implemented on GIT HTML disable/enable anti-alias using config.cxs

grant

Member
CX Code Contributor
3rd Party Module Dev
Joined
Nov 19, 2019
Messages
81
On the HTML5 target it would be nice to have a setting to disable/enable anti-alias/multi-sampling. Just like this...

config.cxs
Code:
#HTML5_CANVAS_ANTIALIAS=False

html5game.js (at line #26)
Code:
var attrs={ antialias: ( CFG_HTML5_CANVAS_ANTIALIAS=="1" ), alpha:( CFG_HTML5_CANVAS_ALPHA=="1" ) };
 
Last edited:

grant

Member
CX Code Contributor
3rd Party Module Dev
Joined
Nov 19, 2019
Messages
81
This is for polygons. I don't think it has any affect on textures. That code I shared is fully working.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,165
Your version is not compatible with our latest version, see the addition of the #HTML5_CANVAS_ALPHA flag.
 

grant

Member
CX Code Contributor
3rd Party Module Dev
Joined
Nov 19, 2019
Messages
81
Oops, the Mac port hadn't gotten the update yet, so I didn't think about that. I updated it so that it is compatible.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,165
While I didn't notice any difference, your changes are implemented:

 

MikeHart

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