WGLGraphics class
Properties
-
backHeight
→ int
-
Height of the backbuffer.
no setterinherited
-
backWidth
→ int
-
Width of the backbuffer.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasTargetBound
→ bool
-
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
viewportHeight
→ int
-
Gets the height of the current bound target, or the backbuffer.
no setterinherited
-
viewportWidth
→ int
-
Gets the width of the current bound target, or the backbuffer.
no setterinherited
Methods
-
bindEffect([Effect? effect])
→ void
-
Binds an effect. Pass in nothing or
null to reset the effect to either nothing or the platform default.
override
-
bindTarget([RenderTarget? renderTarget])
→ void
-
Binds a render target. Pass in nothing or
null, to reset the render target to the back buffer.
override
-
bindTexture([Texture? texture])
→ void
-
Binds a texture. Pass in nothing or
null to reset the texture to either nothing or the platform default.
override
-
changeBack(int width, int height)
→ void
-
Changes the backbuffer size (and viewport size if no target is bound).
override
-
clear(double red, double green, double blue, double alpha)
→ void
-
Clears the current target with a given color.
override
-
createEffect(String vertexSource, String fragmentSource, List<String> uniforms)
→ Effect
-
Creates an effect for the target platform.
override
-
createMesh(List<int> vertexAttributes, [List<double>? vertices, List<int>? indices, bool isStatic = true])
→ Mesh
-
Creates a mesh for the target platform.
override
-
createRenderTarget(Texture texture, [DepthFormat depthFormat = DepthFormat.none])
→ RenderTarget
-
Creates a render target for the target platform.
override
-
createTexture(int width, int height, [bool mipmap = false, TextureFormat textureFormat = TextureFormat.rgba])
→ Texture
-
Creates a texture for the target platform.
override
-
createTextureFromElement(ImageElement element)
→ Texture
-
-
deleteEffect(Effect effect)
→ void
-
override
-
deleteMesh(Mesh mesh)
→ void
-
override
-
deleteRenderTarget(RenderTarget renderTarget)
→ void
-
override
-
deleteTexture(Texture texture)
→ void
-
override
-
draw(Mesh mesh)
→ void
-
Draws a triangle list with indices.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
textureSlot(int slot)
→ void
-
Changes the current texture slot. This is used in shaders to specify samplers.
override
-
toString()
→ String
-
A string representation of this object.
inherited