Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
void ButtonRendering::RenderSelected(const glm::mat4& transform, bounds2f bounds)
{
	RenderCornerButton(transform, _textureButtonSelected, bounds.grow(10), 32);
}
Exemplo n.º 3
0
void ButtonRendering::RenderSelected(bounds2f viewport, bounds2f bounds)
{
	//RenderTextureRect(viewport, _texture_selected, bounds, bounds2(0, 0, 1, 1));
	RenderCornerButton(viewport, _textureButtonSelected, bounds.grow(10), 32);
}
Exemplo n.º 4
0
void ButtonRendering::RenderBackground(bounds2f viewport, bounds2f bounds)
{
	RenderCornerButton(viewport, _textureButtonBackground, bounds.grow(10), 32);
}