Module system.gfx.VertexBuffer
Classes
DrawArgs | |
DrawTextArgs | |
VertexBuffer |
Functions
new () |
Classes
- DrawArgs
-
- rect number[] Rectangle to draw the visual primitive at (x, y, width, height)
- z number Depth position of the visual primitive to draw. Defaults to 0
- texture string File name of the image to use as a texture. Defaults to no texture (white)
- texRect number[] Sub-rectangle for the texture, in pixels (x, y, width, height). Defaults to full image
- color integer RGBA color of the visual primitive. Defaults to white
- angle number Angle to rotate the visual primitive by (in radians). Defaults to 0 (no rotation)
- origin number[] Origin to rotate the visual primitive around (x, y). Defaults to (0, 0)
- DrawTextArgs
-
- text string
- font string
- x number
- y number
- z number
- alignX number
- alignY number
- size number
- opacity number
- fillColor integer
- outlineColor integer
- outlineThickness number
- gradient boolean
- shadowColor integer
- spacingX number
- spacingY number
- maxWidth number
- maxHeight number
- clip boolean
- wordWrap boolean
- maxLines integer
- fixedWidth boolean
- VertexBuffer