add GL.draw_text and Widget#draw_text

This commit is contained in:
josh committed 2014-08-05 22:20:21 -04:00
1 parent 0ca8e044b2
commit 67682df332
2 files changed
+33

No files matched your search

+4
View File
@@ -34,4 +34,8 @@ module Widget
def draw_rect(x, y, width, height, r, g, b, a)
GL.draw_rect(@x + x, @y + y, width, height, r, g, b, a)
end
def draw_text(font, x, y, string, r, g, b, a)
GL.draw_text(font, @x + x, @y + y, string, r, g, b, a)
end
end