Texture member functions
This commit is contained in:
parent
8a2cd7dce2
commit
2578dceb42
4 changed files with 90 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ pub fn main() anyerror!void {
|
|||
|
||||
rl.beginShaderMode(shdrOutline);
|
||||
|
||||
rl.drawTexture(texture, @divFloor(rl.getScreenWidth(), 2) - @divFloor(texture.width, 2), -30, rl.Color.white);
|
||||
texture.draw(@divFloor(rl.getScreenWidth(), 2) - @divFloor(texture.width, 2), -30, rl.Color.white);
|
||||
|
||||
rl.endShaderMode();
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue