summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-10 21:01:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-10 21:01:10 (GMT)
commit2901eefa320c34813c5f7f060e27366c78e96409 (patch)
treec4f88b46f1ad065cd769849891469d097fab2182 /src/elements
parent948fd376b4aae29b961822005cd503d9eb0fbf41 (diff)
downloadpowder-2901eefa320c34813c5f7f060e27366c78e96409.zip
powder-2901eefa320c34813c5f7f060e27366c78e96409.tar.gz
Smoke Graphics
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/smke.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/elements/smke.c b/src/elements/smke.c
new file mode 100644
index 0000000..3e0e88e
--- /dev/null
+++ b/src/elements/smke.c
@@ -0,0 +1,18 @@
+#include <element.h>
+
+int graphics_SMKE(GRAPHICS_FUNC_ARGS)
+{
+ *colr = 55;
+ *colg = 55;
+ *colb = 55;
+
+ *firea = 55;
+ *firer = 55;
+ *fireg = 55;
+ *fireb = 55;
+
+ *pixel_mode = PMODE_NONE; //Clear default, don't draw pixel
+ *pixel_mode |= FIRE_BLEND;
+ //Returning 1 means static, cache as we please
+ return 1;
+} \ No newline at end of file