| Method | Defined by | ||
|---|---|---|---|
|
Renders a bitmap to the screen
| TextureRenderer | ||
|
renderFlatFace(wireFrameMode:Boolean, calculatedColor:Number, gfx:Graphics, material:Material, v1:Vertex, v2:Vertex, v3:Vertex):void
Renders a flat colored face
| TextureRenderer | ||
|
renderLine(gfx:Graphics, material:LineMaterial, vertexList:Array):void
Renders a set of lines
| TextureRenderer | ||
|
Renders a vertex as a pixel
| TextureRenderer | ||
|
renderUV(gfx:Graphics, material:Material, a:Vertex, b:Vertex, c:Vertex, uvMap:Array, colorFactor:Number, ambientColor:uint):void
renders a textured triangle (original code by Andre Michelle, www.andre-michelle.com)
| TextureRenderer | ||
| render2DSprite | () | method |
public function render2DSprite(gfx:Graphics, material:Material, a:Vertex):voidRenders a bitmap to the screen
Parametersgfx:Graphics — object
|
|
material:Material — object
|
|
a:Vertex — vertex
|
| renderFlatFace | () | method |
public function renderFlatFace(wireFrameMode:Boolean, calculatedColor:Number, gfx:Graphics, material:Material, v1:Vertex, v2:Vertex, v3:Vertex):voidRenders a flat colored face
ParameterswireFrameMode:Boolean |
|
calculatedColor:Number |
|
gfx:Graphics |
|
material:Material |
|
v1:Vertex |
|
v2:Vertex |
|
v3:Vertex |
| renderLine | () | method |
public function renderLine(gfx:Graphics, material:LineMaterial, vertexList:Array):voidRenders a set of lines
Parametersgfx:Graphics |
|
material:LineMaterial |
|
vertexList:Array |
| renderPixel | () | method |
public function renderPixel(gfx:Graphics, material:PixelMaterial, a:Vertex):voidRenders a vertex as a pixel
Parametersgfx:Graphics |
|
material:PixelMaterial |
|
a:Vertex — Vertex
|
| renderUV | () | method |
public function renderUV(gfx:Graphics, material:Material, a:Vertex, b:Vertex, c:Vertex, uvMap:Array, colorFactor:Number, ambientColor:uint):voidrenders a textured triangle (original code by Andre Michelle, www.andre-michelle.com)
Parametersgfx:Graphics — object
|
|
material:Material |
|
a:Vertex — 1st vertex
|
|
b:Vertex — 2nd vertex
|
|
c:Vertex — 3rd vertex
|
|
uvMap:Array — of 3 UV-map instances
|
|
colorFactor:Number — 0 and 1, defines the strength of the light
|
|
ambientColor:uint — color
|