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 method

    Declaration

    Swift

    var cache: Bool { get }
  • loader(for:) Extension method

    Returns the default loader for the Engine simplifying what has to be implemented

    Declaration

    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