#include "video/lightmap.hpp"
+#include "SDL.h"
+
class Color;
struct DrawingRequest;
void start_draw(const Color &ambient_color);
void end_draw();
void do_draw();
+
void draw_surface(const DrawingRequest& request);
void draw_surface_part(const DrawingRequest& request);
void draw_gradient(const DrawingRequest& request);
void draw_filled_rect(const DrawingRequest& request);
+
void get_light(const DrawingRequest& request) const;
private:
- Uint8 *red_channel;
- Uint8 *blue_channel;
- Uint8 *green_channel;
+ SDL_Renderer* renderer;
+ SDL_Texture* texture;
int width;
int height;
- int numerator;
- int denominator;
int LIGHTMAP_DIV;
- void light_blit(SDL_Surface *src, SDL_Rect *src_rect, int dstx, int dsty);
-
private:
SDLLightmap(const SDLLightmap&);
SDLLightmap& operator=(const SDLLightmap&);