Documentation ¶
Index ¶
Constants ¶
View Source
const AssetFolderEnv = "ASSET_PATH"
Variables ¶
View Source
var BuiltinFilesystem fs.Filesystem = &builtinFilesystem{}
View Source
var FS fs.Filesystem
FS is the global asset filesystem todo: remove this global variable to avoid the temptation of using it everywhere
Functions ¶
func FindFileInParents ¶
Types ¶
type Mesh ¶
type Mesh interface { Asset // LoadMesh is called by mesh caches and loaders, and should return the mesh data. LoadMesh(assets fs.Filesystem) vertex.Mesh }
type Texture ¶
type Texture interface { Asset // LoadTexture is called by texture caches and loaders, and should return the texture data. // Its unfortunate that this method cant return the texture itself directly, since it // requires access to a graphics queue. The texture upload logic must be centralized somewhere. // Techincally not different for meshes? hmm // Should there be a concept on a cpu-side texture? Similar to vertex.Mesh? LoadTexture(assets fs.Filesystem) *texture.Data }
Click to show internal directories.
Click to hide internal directories.