diff options
Diffstat (limited to 'src/lua/embed/graphics.lua.h')
-rw-r--r-- | src/lua/embed/graphics.lua.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 + )"; |