Skip to content

VanillaRenderContext

Callback context typessource

Used in set_callback ON.RENDER_* callbacks, set_post_render, set_post_render_screen, set_pre_render, set_pre_render_screen

Fields

bounding_box

AABB

source

Methods

draw_screen_line

function VanillaRenderContext:draw_screen_line(A: Vec2, B: Vec2, thickness: number, color: Color)
A: Vec2
B: Vec2
thickness: number
color: Color
source

draw_screen_poly

function VanillaRenderContext:draw_screen_poly(points: Quad, thickness: number, color: Color, closed: boolean)
points: Quad
thickness: number
color: Color
closed: boolean
function VanillaRenderContext:draw_screen_poly(points: Vec2[], thickness: number, color: Color, closed: boolean)
points: Vec2[]
thickness: number
color: Color
closed: boolean
source

draw_screen_poly_filled

function VanillaRenderContext:draw_screen_poly_filled(points: Quad, color: Color)
points: Quad
color: Color
function VanillaRenderContext:draw_screen_poly_filled(points: Vec2[], color: Color)
points: Vec2[]
color: Color
source

draw_screen_rect

function VanillaRenderContext:draw_screen_rect(rect: AABB, thickness: number, color: Color, angle?: number, px?: number, py?: number)
rect: AABB
thickness: number
color: Color
angle?: numberoptional
px?: numberoptional
py?: numberoptional
source

draw_screen_rect_filled

function VanillaRenderContext:draw_screen_rect_filled(rect: AABB, color: Color, angle?: number, px?: number, py?: number)
rect: AABB
color: Color
angle?: numberoptional
px?: numberoptional
py?: numberoptional
source

draw_screen_texture

function VanillaRenderContext:draw_screen_texture(texture_id: TEXTURE, row: integer, column: integer, left: number, top: number, right: number, bottom: number, color: Color)
texture_id: TEXTURE
row: integer
column: integer
left: number
top: number
right: number
bottom: number
color: Color
function VanillaRenderContext:draw_screen_texture(texture_id: TEXTURE, row: integer, column: integer, rect: AABB, color: Color)
texture_id: TEXTURE
row: integer
column: integer
rect: AABB
color: Color
function VanillaRenderContext:draw_screen_texture(texture_id: TEXTURE, row: integer, column: integer, rect: AABB, color: Color, angle: number, px: number, py: number)
texture_id: TEXTURE
row: integer
column: integer
rect: AABB
color: Color
angle: number
px: number
py: number
function VanillaRenderContext:draw_screen_texture(texture_id: TEXTURE, row: integer, column: integer, dest: Quad, color: Color)
texture_id: TEXTURE
row: integer
column: integer
dest: Quad
color: Color
function VanillaRenderContext:draw_screen_texture(texture_id: TEXTURE, source: Quad, dest: Quad, color: Color)
texture_id: TEXTURE
source: Quad
dest: Quad
color: Color
function VanillaRenderContext:draw_screen_texture(texture_id: TEXTURE, tri: TextureRenderingInfo, color: Color)
texture_id: TEXTURE
tri: TextureRenderingInfo
color: Color
source

draw_screen_triangle

function VanillaRenderContext:draw_screen_triangle(triangle: Triangle, thickness: number, color: Color)
triangle: Triangle
thickness: number
color: Color
source

draw_screen_triangle_filled

function VanillaRenderContext:draw_screen_triangle_filled(triangle: Triangle, color: Color)
triangle: Triangle
color: Color
source

draw_text

function VanillaRenderContext:draw_text(text: string, x: number, y: number, scale_x: number, scale_y: number, color: Color, alignment: VANILLA_TEXT_ALIGNMENT, fontstyle: VANILLA_FONT_STYLE)
text: string
x: number
y: number
scale_x: number
scale_y: number
color: Color
alignment: VANILLA_TEXT_ALIGNMENT
fontstyle: VANILLA_FONT_STYLE
function VanillaRenderContext:draw_text(tri: TextRenderingInfo?, color: Color)
tri: TextRenderingInfo?
color: Color
source

draw_text_size

function VanillaRenderContext:draw_text_size(text: string, scale_x: number, scale_y: number, fontstyle: integer): number, number
text: string
scale_x: number
scale_y: number
fontstyle: integer

Returns number, number

source

draw_world_line

function VanillaRenderContext:draw_world_line(A: Vec2, B: Vec2, thickness: number, color: Color)
A: Vec2
B: Vec2
thickness: number
color: Color
source

draw_world_poly

function VanillaRenderContext:draw_world_poly(points: Quad, thickness: number, color: Color, closed: boolean)
points: Quad
thickness: number
color: Color
closed: boolean
function VanillaRenderContext:draw_world_poly(points: Vec2[], thickness: number, color: Color, closed: boolean)
points: Vec2[]
thickness: number
color: Color
closed: boolean
source

draw_world_poly_filled

function VanillaRenderContext:draw_world_poly_filled(points: Quad, color: Color)
points: Quad
color: Color
function VanillaRenderContext:draw_world_poly_filled(points: Vec2[], color: Color)
points: Vec2[]
color: Color
source

draw_world_rect

function VanillaRenderContext:draw_world_rect(rect: AABB, thickness: number, color: Color, angle?: number, px?: number, py?: number)
rect: AABB
thickness: number
color: Color
angle?: numberoptional
px?: numberoptional
py?: numberoptional
source

draw_world_rect_filled

function VanillaRenderContext:draw_world_rect_filled(rect: AABB, color: Color, angle?: number, px?: number, py?: number)
rect: AABB
color: Color
angle?: numberoptional
px?: numberoptional
py?: numberoptional
source

draw_world_texture

function VanillaRenderContext:draw_world_texture(texture_id: TEXTURE, row: integer, column: integer, left: number, top: number, right: number, bottom: number, color: Color)
texture_id: TEXTURE
row: integer
column: integer
left: number
top: number
right: number
bottom: number
color: Color
function VanillaRenderContext:draw_world_texture(texture_id: TEXTURE, row: integer, column: integer, dest: AABB, color: Color)
texture_id: TEXTURE
row: integer
column: integer
dest: AABB
color: Color
function VanillaRenderContext:draw_world_texture(texture_id: TEXTURE, row: integer, column: integer, dest: AABB, color: Color, angle: number, px: number, py: number)
texture_id: TEXTURE
row: integer
column: integer
dest: AABB
color: Color
angle: number
px: number
py: number
function VanillaRenderContext:draw_world_texture(texture_id: TEXTURE, row: integer, column: integer, dest: Quad, color: Color)
texture_id: TEXTURE
row: integer
column: integer
dest: Quad
color: Color
function VanillaRenderContext:draw_world_texture(texture_id: TEXTURE, row: integer, column: integer, dest: Quad, color: Color, shader: WORLD_SHADER)
texture_id: TEXTURE
row: integer
column: integer
dest: Quad
color: Color
shader: WORLD_SHADER
function VanillaRenderContext:draw_world_texture(texture_id: TEXTURE, source: Quad, dest: Quad, color: Color)
texture_id: TEXTURE
source: Quad
dest: Quad
color: Color
function VanillaRenderContext:draw_world_texture(texture_id: TEXTURE, source: Quad, dest: Quad, color: Color, shader: WORLD_SHADER)
texture_id: TEXTURE
source: Quad
dest: Quad
color: Color
shader: WORLD_SHADER
source

draw_world_triangle

function VanillaRenderContext:draw_world_triangle(triangle: Triangle, thickness: number, color: Color)
triangle: Triangle
thickness: number
color: Color
source

draw_world_triangle_filled

function VanillaRenderContext:draw_world_triangle_filled(triangle: Triangle, color: Color)
triangle: Triangle
color: Color
source

render_draw_depth

function VanillaRenderContext:render_draw_depth(layer: LAYER, draw_depth: integer, bbox: AABB)
layer: LAYER
draw_depth: integer
bbox: AABB
source

set_corner_finish

function VanillaRenderContext:set_corner_finish(c: CORNER_FINISH)
c: CORNER_FINISH
source