love.math.random now uses a slight variant of Xorshift (Xorshift*).

This commit is contained in:
Alex Szpakowski
2015-10-26 20:47:56 -03:00
parent f92e6552d4
commit c03ce3a9ab
3 changed files with 19 additions and 21 deletions
-10
View File
@@ -79,16 +79,6 @@ public:
GLuint texture;
int startvertex;
int vertexcount;
// used when sorting with std::sort.
bool operator < (const DrawCommand &other) const
{
// Texture binds are expensive, so we should sort by that first.
if (texture != other.texture)
return texture < other.texture;
else
return startvertex < other.startvertex;
}
};
Font(love::font::Rasterizer *r, const Texture::Filter &filter = Texture::getDefaultFilter());