22 explicit GLImage(
const std::string& filename);
24 GLImage(
const std::string& filename,
float scaleFactor);
28 int borderSize, uint32_t borderRGBA);
31 draw(pos, 255, 255, 255, alpha);
34 uint8_t r, uint8_t
g, uint8_t b, uint8_t alpha);
46 void initBuffers()
const;
50 std::array<gl::BufferObject, 3> vbo;
54 std::array<uint16_t, 4> bgA;
56 std::array<uint8_t, 4> bgR, bgG, bgB;
57 uint8_t borderR{0}, borderG{0}, borderB{0};
Most basic/generic texture: only contains a texture ID.