Improve console context, add support in 'Hello World'
This commit is contained in:
@@ -39,7 +39,12 @@ class Main extends Application {
|
||||
|
||||
gl.clearColor (0.75, 1, 0, 1);
|
||||
gl.clear (gl.COLOR_BUFFER_BIT);
|
||||
|
||||
case CONSOLE (context):
|
||||
|
||||
context.clearColor (0.75, 1, 0, 1);
|
||||
context.clear ();
|
||||
|
||||
default:
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user