class OpenGLRenderer
package openfl.display
extends DisplayObjectRenderer › EventDispatcher
Available on all platforms
BETA**
The OpenGLRenderer API exposes support for OpenGL render instructions within the
RenderEvent.RENDER_OPENGL
event.
Variables
Methods
applyAlpha(alpha:Float):Void
Applies an alpha value to the active shader, if compatible with OpenFL core shaders
applyBitmapData(bitmapData:BitmapData, smooth:Bool, repeat:Bool = false):Void
Binds a BitmapData object as the first active texture of the current active shader, if compatible with OpenFL core shaders
applyColorTransform(colorTransform:ColorTransform):Void
Applies a color transform value to the active shader, if compatible with OpenFL core shaders
applyHasColorTransform(enabled:Bool):Void
Applies the "has color transform" uniform value for the active shader, if compatible with OpenFL core shaders
applyMatrix(matrix:Array<Float>):Void
Applies render matrix to the active shader, if compatible with OpenFL core shaders
getMatrix(transform:Matrix):Matrix4
Converts an OpenFL two-dimensional matrix to a compatible 3D matrix for use with OpenGL rendering. Repeated calls to this method will return the same object with new values, so it will need to be cloned if the result must be cached
setShader(shader:Shader):Void
Sets the current active shader, which automatically unbinds the previous shader if it was bound using an OpenFL Shader object
updateShader():Void
Updates the current active shader with cached alpha, color transform, bitmap data and other uniform or attribute values. This should be called in advance of rendering
useAlphaArray():Void
Updates the active shader to expect an alpha array, if the current shader is compatible with OpenFL core shaders
useColorTransformArray():Void
Updates the active shader to expect a color transform array, if the current shader is compatible with OpenFL core shaders