|
|
@@ -61,8 +61,15 @@ texture texture::create(char const * data, math::vec2i size) {
|
|
|
texture::texture(unsigned int id, math::vec2i sz)
|
|
|
: identity<texture>(id), size(sz) {}
|
|
|
|
|
|
-texture const texture::WHITE = texture::create("\xFF\xFF\xFF\xFF", {{1, 1}});
|
|
|
-texture const texture::DARK_YELLOW =
|
|
|
- texture::create("\x80\x80\x00\xFF", {{1, 1}});
|
|
|
-texture const texture::LIGHT_BLUE =
|
|
|
- texture::create("\x80\x80\xFF\xFF", {{1, 1}});
|
|
|
+texture const texture::WHITE() {
|
|
|
+ static auto t = texture::create("\xFF\xFF\xFF\xFF", {{1, 1}});
|
|
|
+ return t;
|
|
|
+}
|
|
|
+texture const texture::DARK_YELLOW() {
|
|
|
+ static auto t = texture::create("\x80\x80\x00\xFF", {{1, 1}});
|
|
|
+ return t;
|
|
|
+}
|
|
|
+texture const texture::LIGHT_BLUE() {
|
|
|
+ static auto t = texture::create("\x80\x80\xFF\xFF", {{1, 1}});
|
|
|
+ return t;
|
|
|
+}
|