FlatTileBuffer
ldtk.rules.FlatTileBuffer (Class)
Implements: AutoTileSink
Flat, reusable tile buffer for runtime use: STRIDE ints per tile, no object per tile.
Layout per tile: ruleUid, coordId, tid, flips, x, y, srcX, srcY, alpha*4096.
Tiles are stored rule by rule, in the order they were produced; segment* accessors give the range of each rule.
The buffer keeps its capacity between reset() calls.
Static Members
STRIDE: IntInstance Members
length: IntNumber of ints in use
tileCount: IntsegmentCount: Intreset(): Void| Name | Type |
|---|---|
ruleUid |
Int |
| Name | Type |
|---|---|
coordId |
Int |
x |
Int |
y |
Int |
srcX |
Int |
srcY |
Int |
tid |
Int |
flips |
Int |
a |
Float |
| Name | Type |
|---|---|
seg |
Int |
| Returns |
|---|
| Int |
First int index of the segment
| Name | Type |
|---|---|
seg |
Int |
| Returns |
|---|
| Int |
Int index right after the segment
| Name | Type |
|---|---|
seg |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
t |
Int |
| Returns |
|---|
| Int |
new(): VoidPrivate Members
curRuleUid: IntMetadata
| Name | Parameters |
|---|---|
:hxGen |
- |