textureglyph::textureglyph(texturetile tile, bounds2f bounds, glm::vec2 inset) { outer_xy = bounds; inner_xy = bounds.grow(-inset.x, -inset.y); outer_uv = tile.outer; inner_uv = tile.inner; }
void ButtonRendering::RenderSelected(const glm::mat4& transform, bounds2f bounds) { RenderCornerButton(transform, _textureButtonSelected, bounds.grow(10), 32); }
void ButtonRendering::RenderSelected(bounds2f viewport, bounds2f bounds) { //RenderTextureRect(viewport, _texture_selected, bounds, bounds2(0, 0, 1, 1)); RenderCornerButton(viewport, _textureButtonSelected, bounds.grow(10), 32); }
void ButtonRendering::RenderBackground(bounds2f viewport, bounds2f bounds) { RenderCornerButton(viewport, _textureButtonBackground, bounds.grow(10), 32); }