lsnes rr1-Δ11ε1
[lsnes.git] / include / lua / bitmap.hpp
blob5e0ad635924530b0557db8fa8c86676db72adc65
1 #ifndef _lua__bitmap__hpp__included__
2 #define _lua__bitmap__hpp__included__
4 #include <vector>
5 #include <string>
6 #include <cstdint>
7 #include "core/window.hpp"
8 #include "library/framebuffer.hpp"
10 struct lua_bitmap
12 lua_bitmap(uint32_t w, uint32_t h);
13 size_t width;
14 size_t height;
15 std::vector<uint16_t> pixels;
18 struct lua_dbitmap
20 lua_dbitmap(uint32_t w, uint32_t h);
21 size_t width;
22 size_t height;
23 std::vector<premultiplied_color> pixels;
26 struct lua_palette
28 std::vector<premultiplied_color> colors;
29 lua_palette();
30 ~lua_palette();
31 mutex* palette_mutex;
34 struct lua_loaded_bitmap
36 size_t w;
37 size_t h;
38 bool d;
39 std::vector<int64_t> bitmap;
40 std::vector<int64_t> palette;
41 static struct lua_loaded_bitmap load(const std::string& name);
45 #endif