mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Remove unnecessary internal constructor arguments.
This commit is contained in:
@@ -208,7 +208,7 @@ love::graphics::SpriteBatch *Graphics::newSpriteBatch(Texture *texture, int size
|
||||
|
||||
love::graphics::ParticleSystem *Graphics::newParticleSystem(Texture *texture, int size)
|
||||
{
|
||||
return new ParticleSystem(this, texture, size);
|
||||
return new ParticleSystem(texture, size);
|
||||
}
|
||||
|
||||
ShaderStage *Graphics::newShaderStage(ShaderStage::StageType stage, const std::string &optsource)
|
||||
@@ -279,7 +279,7 @@ love::graphics::Mesh *Graphics::newMesh(const std::vector<Mesh::AttribFormat> &v
|
||||
|
||||
love::graphics::Text *Graphics::newText(graphics::Font *font, const std::vector<Font::ColoredString> &text)
|
||||
{
|
||||
return new Text(this, font, text);
|
||||
return new Text(font, text);
|
||||
}
|
||||
|
||||
void Graphics::cleanupCachedShaderStage(ShaderStage::StageType type, const std::string &hashkey)
|
||||
|
||||
@@ -53,7 +53,7 @@ float calculate_variation(float inner, float outer, float var)
|
||||
|
||||
love::Type ParticleSystem::type("ParticleSystem", &Drawable::type);
|
||||
|
||||
ParticleSystem::ParticleSystem(Graphics *gfx, Texture *texture, uint32 size)
|
||||
ParticleSystem::ParticleSystem(Texture *texture, uint32 size)
|
||||
: pMem(nullptr)
|
||||
, pFree(nullptr)
|
||||
, pHead(nullptr)
|
||||
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
/**
|
||||
* Creates a particle system with the specified buffer size and texture.
|
||||
**/
|
||||
ParticleSystem(Graphics *gfx, Texture *texture, uint32 buffer);
|
||||
ParticleSystem(Texture *texture, uint32 buffer);
|
||||
ParticleSystem(const ParticleSystem &p);
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace graphics
|
||||
|
||||
love::Type Text::type("Text", &Drawable::type);
|
||||
|
||||
Text::Text(Graphics *gfx, Font *font, const std::vector<Font::ColoredString> &text)
|
||||
Text::Text(Font *font, const std::vector<Font::ColoredString> &text)
|
||||
: font(font)
|
||||
, vertexAttributes(Font::vertexFormat, 0)
|
||||
, vbo(nullptr)
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
|
||||
static love::Type type;
|
||||
|
||||
Text(Graphics *gfx, Font *font, const std::vector<Font::ColoredString> &text = {});
|
||||
Text(Font *font, const std::vector<Font::ColoredString> &text = {});
|
||||
virtual ~Text();
|
||||
|
||||
void set(const std::vector<Font::ColoredString> &text);
|
||||
|
||||
Reference in New Issue
Block a user