Texture member functions

This commit is contained in:
Not-Nik 2023-07-11 15:39:11 +02:00
parent 8a2cd7dce2
commit 2578dceb42
Failed to generate hash of commit
4 changed files with 90 additions and 2 deletions

View file

@ -79,7 +79,7 @@ pub fn main() anyerror!void {
rl.drawRectangleLines(250 + 21 * @intCast(c_int, i), 205, 20, 20, rl.Color.maroon);
}
rl.drawTextureRec(scarfy, frameRec, position, rl.Color.white); // Draw part of the texture
scarfy.drawRec(frameRec, position, rl.Color.white); // Draw part of the texture
rl.drawText("(c) Scarfy sprite by Eiden Marsal", screenWidth - 200, screenHeight - 20, 10, rl.Color.gray);