예제 #1
0
void Image::draw(glm::ivec2 position, glm::ivec2 size,
        Renderer2D &renderer) {
    renderer.draw(position, size, texture);
}
예제 #2
0
void Text::draw(glm::ivec2 position, Renderer2D &renderer) {
    renderer.draw(position, text, color, font);
}
예제 #3
0
void Color::draw(glm::ivec2 position, glm::ivec2 size,
        Renderer2D &renderer) {
    renderer.draw(position, size, color);
}