Load a texture from image data. The image is not affected and remains usable
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.