summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-11-18 19:38:08 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-11-18 19:38:08 (GMT)
commitf50801333214e79492dd72c23f05cd4bc84fcf54 (patch)
tree3b6f934b80c45f1c696c0f8b1ae5f67c743b25b4 /src/graphics.c
parent8a962b2f9605672627c077d2878c03fab53495a4 (diff)
downloadpowder-f50801333214e79492dd72c23f05cd4bc84fcf54.zip
powder-f50801333214e79492dd72c23f05cd4bc84fcf54.tar.gz
New tables in lua API: el and version: element ids and version info respectively. New lua functions: element (get element id from name) and element_func for hooking/overriding element update functions
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 039bba3..2f2c367 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -412,6 +412,12 @@ void clearScreen(float alpha)
glClear(GL_COLOR_BUFFER_BIT);
}
+void clearScreenNP(float alpha)
+{
+ glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
+ glClear(GL_COLOR_BUFFER_BIT);
+}
+
void ogl_blit(int x, int y, int w, int h, pixel *src, int pitch, int scale)
{