Discover Packages
github.com/noxworld-dev/opennox-lib
maps
maprender
package
Version:
v0.0.0-...-b9edb71
Opens a new window with list of versions in this module.
Published: Nov 23, 2024
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
DrawMap is a helper for drawing a single map. For multiple maps it's more efficient to use Renderer.
type Options struct {
FailFast bool
NoFloor bool
NoWalls bool
}
Renderer is a Nox map renderer.
NewRenderer creates a Nox map renderer based on a given Nox data dir.
The renderer can be sued to draw multiple maps.
DrawMap renders the map. It will keep processing the map and return a partial image in case of an error.
If FailFast option is set, it will fail on the first error instead of returning the last one.
Passing nil options will use defaults.
DrawMapFile reads and renders the map file. See DrawMap for details.
As opposed to DrawMap, the returned image may be nil in case map decoding fails.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.