|
|
|
@ -31,7 +31,7 @@ namespace Magnum { namespace Primitives { |
|
|
|
|
|
|
|
|
|
|
|
Trade::MeshData2D Square::solid(const TextureCoords textureCoords) { |
|
|
|
Trade::MeshData2D Square::solid(const TextureCoords textureCoords) { |
|
|
|
std::vector<std::vector<Vector2>> coords; |
|
|
|
std::vector<std::vector<Vector2>> coords; |
|
|
|
if(textureCoords == TextureCoords::Generate) coords.push_back({ |
|
|
|
if(textureCoords == TextureCoords::Generate) coords.push_back(std::vector<Vector2>{ |
|
|
|
{1.0f, 0.0f}, |
|
|
|
{1.0f, 0.0f}, |
|
|
|
{1.0f, 1.0f}, |
|
|
|
{1.0f, 1.0f}, |
|
|
|
{0.0f, 0.0f}, |
|
|
|
{0.0f, 0.0f}, |
|
|
|
|