Packagede.nulldesign.nd3d.renderer
Classpublic class TextureRenderer

The TextureRenderer



Public Methods
 MethodDefined by
  
render2DSprite(gfx:Graphics, material:Material, a:Vertex):void
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
  
renderPixel(gfx:Graphics, material:PixelMaterial, a:Vertex):void
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
Method detail
render2DSprite()method
public function render2DSprite(gfx:Graphics, material:Material, a:Vertex):void

Renders a bitmap to the screen

Parameters
gfx: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):void

Renders a flat colored face

Parameters
wireFrameMode:Boolean
 
calculatedColor:Number
 
gfx:Graphics
 
material:Material
 
v1:Vertex
 
v2:Vertex
 
v3:Vertex
renderLine()method 
public function renderLine(gfx:Graphics, material:LineMaterial, vertexList:Array):void

Renders a set of lines

Parameters
gfx:Graphics
 
material:LineMaterial
 
vertexList:Array
renderPixel()method 
public function renderPixel(gfx:Graphics, material:PixelMaterial, a:Vertex):void

Renders a vertex as a pixel

Parameters
gfx: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):void

renders a textured triangle (original code by Andre Michelle, www.andre-michelle.com)

Parameters
gfx: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