EngineTexture
public protocol EngineTexture : EngineObject, Loadable
By implementing this protocol (required for Engine.TextureType
loading behaviour except the actual loading of the texture data will be
provided
-
cache
Extension methodDeclaration
Swift
var cache: Bool { get }
-
loader(for:
Extension method) Returns the default loader for the
Engine
simplifying what has to be implementedDeclaration
Swift
static func loader(for project: Project) -> ResourceLoader
Parameters
project
The project the texture is refered to from
Return Value
The
ResourceLoader
that knows how to load the texture