diff options
| author | realtradam <[email protected]> | 2022-01-20 02:23:23 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-01-20 02:23:23 -0500 |
| commit | ced40dd6205b6c74101dc97d3f932870e7cb231b (patch) | |
| tree | 07ea4f476087134db6cf0f9a5a5eb2a24ec5c980 /mrblib | |
| parent | 3e7084f7ec4f00fda1b2f63219b8ba94ca57dc04 (diff) | |
| download | mruby-raylib-ced40dd6205b6c74101dc97d3f932870e7cb231b.tar.gz mruby-raylib-ced40dd6205b6c74101dc97d3f932870e7cb231b.zip | |
texture rendering
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/raylib.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrblib/raylib.rb b/mrblib/raylib.rb index fb45ad8..7c8f6c2 100644 --- a/mrblib/raylib.rb +++ b/mrblib/raylib.rb @@ -19,5 +19,9 @@ module Raylib def draw_text(text:, x:, y:, font_size:, color:) self._draw_text(text, x, y, font_size, color) end + + def draw_texture(texture:, x:, y:, tint: Rl::Color.new(255,255,255,255)) + self._draw_texture(texture, x, y, tint) + end end end |
