loadTexture

fnTextureId loadTexture(IStr path, IStr file = __FILE__, Sz line = __LINE__)

Loads a texture file (PNG) with default filter and wrap modes. Uses the assets path unless the input starts with `/` or `\`, or isUsingAssetsPath is false. Path separators are normalized to the platform's native format.

fnTextureId loadTexture(const(ubyte)[] memory, IStr ext = ".png", IStr file = __FILE__, Sz line = __LINE__)

Loads a texture file (PNG) from memory with default filter and wrap modes.