mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
OS X: switched to -std=c++11, fixed compilation, cleaned up obsolete files in src/platform/macosx/
This commit is contained in:
@@ -216,10 +216,10 @@ Font::Glyph *Font::addGlyph(uint32 glyph)
|
||||
g->texture = t;
|
||||
|
||||
const GlyphVertex verts[4] = {
|
||||
{0, 0, float(textureX)/float(textureWidth), float(textureY)/float(textureHeight)},
|
||||
{w, 0, float(textureX+w)/float(textureWidth), float(textureY)/float(textureHeight)},
|
||||
{w, h, float(textureX+w)/float(textureWidth), float(textureY+h)/float(textureHeight)},
|
||||
{0, h, float(textureX)/float(textureWidth), float(textureY+h)/float(textureHeight)},
|
||||
{ 0.0f, 0.0f, float(textureX)/float(textureWidth), float(textureY)/float(textureHeight)},
|
||||
{float(w), 0.0f, float(textureX+w)/float(textureWidth), float(textureY)/float(textureHeight)},
|
||||
{float(w), float(h), float(textureX+w)/float(textureWidth), float(textureY+h)/float(textureHeight)},
|
||||
{ 0.0f, float(h), float(textureX)/float(textureWidth), float(textureY+h)/float(textureHeight)},
|
||||
};
|
||||
|
||||
// copy vertex data to the glyph and set proper bearing
|
||||
|
||||
Reference in New Issue
Block a user