Load a texture from image data NOTE: image is not unloaded, it must be done manually
img = raylib.LoadImage("sprite.png") tex = raylib.LoadTextureFromImage(img) raylib.UnloadImage img if raylib.IsTextureValid(tex) then raylib.DrawTexture tex, 0, 0, raylib.WHITE raylib.UnloadTexture tex end if
There was an error while loading. Please reload this page.