FlxDrawTrianglesItem
| Kind | class |
| Package | flixel.graphics.tile |
| Full name | flixel.graphics.tile.FlxDrawTrianglesItem |
| Source | source/source-haxelib-patches/flixel/graphics/tile/FlxDrawTrianglesItem.hx |
| Extends | FlxDrawBaseItem<FlxDrawTrianglesItem> |
@author Zaphod
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
shader | FlxShader | no | — | — |
vertices | DrawData<Float> | no | new DrawData<Float>() | — |
indices | DrawData<Int> | no | new DrawData<Int>() | — |
uvtData | DrawData<Float> | no | new DrawData<Float>() | — |
colors | DrawData<Int> | no | new DrawData<Int>() | — |
verticesPosition | Int | no | 0 | — |
indicesPosition | Int | no | 0 | — |
colorsPosition | Int | no | 0 | — |
Public methods
new (constructor)
function new()
render
override function render(camera:FlxCamera):Void
| Parameter | Type | Default |
|---|---|---|
camera | FlxCamera | — |
reset
override function reset():Void
dispose
override function dispose():Void
addTriangles
function addTriangles(vertices:DrawData<Float>, indices:DrawData<Int>, uvtData:DrawData<Float>, ?colors:DrawData<Int>, ?position:FlxPoint, ?cameraBounds:FlxRect, ?transform:ColorTransform):Void
| Parameter | Type | Default |
|---|---|---|
vertices | DrawData<Float> | — |
indices | DrawData<Int> | — |
uvtData | DrawData<Float> | — |
colors (optional) | DrawData<Int> | — |
position (optional) | FlxPoint | — |
cameraBounds (optional) | FlxRect | — |
transform (optional) | ColorTransform | — |
inflateBounds
static inline function inflateBounds(bounds:FlxRect, x:Float, y:Float):FlxRect
| Parameter | Type | Default |
|---|---|---|
bounds | FlxRect | — |
x | Float | — |
y | Float | — |
addQuad
override function addQuad(frame:FlxFrame, matrix:FlxMatrix, ?transform:ColorTransform):Void
| Parameter | Type | Default |
|---|---|---|
frame | FlxFrame | — |
matrix | FlxMatrix | — |
transform (optional) | ColorTransform | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
point | FlxPoint | yes |
rect | FlxRect | yes |
alphas | Array<Float> | no |
colorMultipliers | Array<Float> | no |
colorOffsets | Array<Float> | no |
bounds | FlxRect | no |
| Method |
|---|
inline function setParameterValue(parameter:ShaderParameter<Bool>, value:Bool):Void |
override function get_numVertices():Int |
override function get_numTriangles():Int |