From 58d09aa3ca4409e2a15473b0ac3c0446f0acb1a2 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 22 Oct 2018 21:30:21 +0800 Subject: *misc --- src/lua/embed/graphics.lua.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lua/embed/graphics.lua.h') diff --git a/src/lua/embed/graphics.lua.h b/src/lua/embed/graphics.lua.h index 288d2f4..5fa5dad 100644 --- a/src/lua/embed/graphics.lua.h +++ b/src/lua/embed/graphics.lua.h @@ -35,4 +35,12 @@ jin.graphics.unuseShader = function() jin.graphics.useShader(default_shader) end +-- Reset all attributes to default value. +jin.graphics.reset = function() + jin.graphics.setColor(255, 255, 255, 255) + jin.graphics.setClearColor(0, 0, 0, 255) + jin.graphics.clear() + jin.graphics.unsetFont() +end + )"; -- cgit v1.1-26-g67d0