Documentation ¶
Index ¶
- func DecodeImage(data io.Reader) (image.Image, error)
- func FindNodeByClass(class string, model *editorModels.NodeModel) []*editorModels.NodeModel
- func FindNodeById(nodeId string, model *editorModels.NodeModel) *editorModels.NodeModel
- func ImportImage(file string) (image.Image, error)
- func ImportImageCached(path string) (image.Image, error)
- func ImportObj(filePath string) (geometry *renderer.Geometry, material *renderer.Material, err error)
- func ImportObjCached(path string) (geometry *renderer.Geometry, material *renderer.Material, err error)
- func ImportShader(vertexFile, fragmentFile string) (*renderer.Shader, error)
- func IntersectGeometry(geometry *renderer.Geometry) [][2]mgl32.Vec2
- func LoadMap(path string) *editorModels.MapModel
- func LoadMapToNode(srcModel *editorModels.NodeModel, destNode *renderer.Node) *editorModels.NodeModel
- func PointsFromGeometry(geometry *renderer.Geometry, cullThreshold float32) *[]mgl32.Vec3
- type AssetCache
- type Loader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNodeByClass ¶
func FindNodeByClass(class string, model *editorModels.NodeModel) []*editorModels.NodeModel
func FindNodeById ¶
func FindNodeById(nodeId string, model *editorModels.NodeModel) *editorModels.NodeModel
func ImportObj ¶
func ImportObj(filePath string) (geometry *renderer.Geometry, material *renderer.Material, err error)
imports an obj from a filePath and return a Geometry
func ImportObjCached ¶
func IntersectGeometry ¶
IntersectGeometry - returns a list of line segments resulting from the xz plane intersection of the geometry
func LoadMapToNode ¶
Types ¶
type AssetCache ¶
type AssetCache struct {
// contains filtered or unexported fields
}
func NewAssetCache ¶
func NewAssetCache() *AssetCache
func (*AssetCache) ImportImage ¶
func (ac *AssetCache) ImportImage(path string) (img image.Image, err error)
Click to show internal directories.
Click to hide internal directories.