Module: PseudoGame.graphics.screen
Module for drawing polygon objects to the screen (by converting them to cw data which is applied on real custom walls in the right render order)
Functions
PseudoGame.graphics.screen:get_width () | get the width of the screen, so you put polygons directly on the edge | |
PseudoGame.graphics.screen:get_height () | get the height of the screen, so you put polygons directly on the edge (adjusted for skew, so need to refresh every tick if 3d is changing) | |
PseudoGame.graphics.screen:draw_polygon (polygon) |
draw a polygon to the screen (only shown once screen:update() is called)
|
|
PseudoGame.graphics.screen:draw_polygon_collection (polygon_collection) |
draw a polygon collection to the screen (only shown once screen:update() is called)
|
|
PseudoGame.graphics.screen:update () | update the screen after drawing, this applies the purely virtual data onto real custom walls |
Functions
- 🔗 PseudoGame.graphics.screen:get_width ()
-
get the width of the screen, so you put polygons directly on the edge
Returns:
-
number
- 🔗 PseudoGame.graphics.screen:get_height ()
-
get the height of the screen, so you put polygons directly on the edge (adjusted for skew, so need to refresh every tick if 3d is changing)
Returns:
-
number
- 🔗 PseudoGame.graphics.screen:draw_polygon (polygon)
-
draw a polygon to the screen (only shown once
screen:update()
is called)Parameters:
Name Type(s) Description polygon Polygon the polygon to draw - 🔗 PseudoGame.graphics.screen:draw_polygon_collection (polygon_collection)
-
draw a polygon collection to the screen (only shown once
screen:update()
is called)Parameters:
Name Type(s) Description polygon_collection PolygonCollection the polygon collection to draw - 🔗 PseudoGame.graphics.screen:update ()
- update the screen after drawing, this applies the purely virtual data onto real custom walls