This commit is contained in:
Joshua Granick
2016-11-16 11:37:08 -08:00
parent 46024e281b
commit a78347c1a2
2 changed files with 5 additions and 1 deletions

View File

@@ -330,6 +330,10 @@ extern class GLRenderContext {
var drawingBufferWidth (default, null):Int;
#end
#if (!js || !html5)
function new();
#end
function activeTexture (texture:Int):Void;
function attachShader (program:GLProgram, shader:GLShader):Void;
function bindAttribLocation (program:GLProgram, index:Int, name:String):Void;

View File

@@ -10,7 +10,7 @@ import lime.graphics.GLRenderContext;
enum RenderContext {
OPENGL (gl:#if (!flash || display) GLRenderContext #else Dynamic #end);
OPENGL (gl:GLRenderContext);
CANVAS (context:CanvasRenderContext);
DOM (element:DOMRenderContext);
FLASH (stage:FlashRenderContext);