module Apps::MapViewer
Overview
An app used for viewing maps
To use, call Apps::MapViewer.run(wad, map)
To use in the command line, call Apps::MapViewer.run_cli
and use -w
and -m
Defined in:
apps/map-viewer.crapps/map-viewer/map_viewer_grid.cr
apps/map-viewer/map_viewer_main.cr
apps/map-viewer/map_viewer_sector.cr
apps/map-viewer/map_viewer_thing.cr
Constant Summary
-
RESX =
1000
-
RESY =
1000
-
VERSION =
"1.0.0"
Class Method Summary
-
.draw_grid(grid_size)
Draws a grid with size grid_size
-
.draw_texture_poly(texture : RL::Texture2D, points : Array(RL::Vector2), texcoords : Array(RL::Vector2), tint : RL::Color)
Draws a polygon
-
.run(input_file : String, input_map : String = "")
Runs the map viewer given a wad path and a map name
-
.run(wad : WAD, input_map : String = "")
Runs the map viewer given a wad and a map name
-
.run_cli
Runs the map viewer with wad and map defined in the command line -w Path/To/Wad -m MapName (not required) -h (Shows the help)
Class Method Detail
def self.draw_texture_poly(texture : RL::Texture2D, points : Array(RL::Vector2), texcoords : Array(RL::Vector2), tint : RL::Color)
#
Draws a polygon
def self.run(input_file : String, input_map : String = "")
#
Runs the map viewer given a wad path and a map name
def self.run_cli
#
Runs the map viewer with wad and map defined in the command line -w Path/To/Wad -m MapName (not required) -h (Shows the help)