Returns whether the browser supports WebGL functionality and hardware acceleration.


GML Code Example


Returns: Boolean


This read-only variable will return whether WebGL is enabled (true) or not (false) for your game. It will only work for those games running through a browser (ie: HTML5), and for all other platforms it will return true.


GML Code Example

if webgl_enabled global.quality = 1 else global.quality = 0;

The above code checks the WebGL flag and then sets the global variable "quality" accordingly.

Back: HTML5

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here