diff engine/core/video/image.h @ 661:e3140f01749d

* Merged the light branch back into trunk. * Modified the demos so they work with the new loaders and setting.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 05 Nov 2010 15:21:10 +0000
parents 5d6b1820b953
children
line wrap: on
line diff
--- a/engine/core/video/image.h	Wed Nov 03 13:44:12 2010 +0000
+++ b/engine/core/video/image.h	Fri Nov 05 15:21:10 2010 +0000
@@ -93,6 +93,10 @@
 		 */
 		virtual void drawVertex(const Point& p, const uint8_t size, int r, int g, int b, int a = 255) = 0;
 
+		/** Draws a light primitive that based on a triangle fan
+		 */
+		virtual void drawLightPrimitive(const Point& p, uint8_t intensity, float radius, int subdivisions, float xstretch, float ystretch, uint8_t red, uint8_t green, uint8_t blue) = 0;
+
 		/** Returns pixel RGBA values from given position
 		 */
 		virtual void getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) = 0;