35 std::cout <<
"No texture set for particle renderer!\n";
Represents a four-component color using red, green, blue, and alpha data.
Interface for a particle.
Interface for a particle renderer.
Instantiate a basic particle.
virtual float GetScale() const
Gets the scale of the particle.
virtual Vector2 GetPosition() const
Gets the position of the particle.
virtual Color GetColor() const
Gets the color of the particle.
void SetTexture(Texture *pTexture)
Sets the texture to use when rendering the particle.
virtual void Draw(IParticle *pParticle, SpriteBatch &spriteBatch) const
Draws the particle.
Enables a group of sprites to be drawn using the same settings.
void Draw(const Texture *pTexture, const Vector2 position, const Region region, const Color color=Color::White, const Vector2 origin=Vector2::ZERO, const Vector2 scale=Vector2::ONE, const float rotation=0, const float drawDepth=0)
Adds a sprite to a batch of sprites to be rendered.
Represents a 2D grid of texels.
Vector2 GetCenter() const
Gets the center position of the texture.
Defines a vector with 2 components (x and y).
static const Vector2 ONE
A vector with both of its components set to one.
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...