Files
BlitzNext/Runtime/blitz3d/brush.hpp
T

43 lines
813 B
C++
Raw Normal View History

2014-01-31 08:23:00 +13:00
#ifndef BRUSH_H
#define BRUSH_H
2019-01-18 15:55:06 +01:00
#include "geom.hpp"
#include "texture.hpp"
2014-01-31 08:23:00 +13:00
2019-01-18 17:04:17 +01:00
class Brush {
public:
2014-01-31 08:23:00 +13:00
Brush();
2019-01-18 17:04:17 +01:00
Brush(const Brush& t);
Brush(const Brush& a, const Brush& b);
2014-01-31 08:23:00 +13:00
~Brush();
2019-01-18 17:04:17 +01:00
Brush& operator=(const Brush& t);
2014-01-31 08:23:00 +13:00
2019-01-18 17:04:17 +01:00
void setColor(const Vector& color);
void setAlpha(float alpha);
void setShininess(float shininess);
void setBlend(int blend);
void setFX(int fx);
void setTexture(int index, const Texture& t, int frame);
2014-01-31 08:23:00 +13:00
2019-01-18 17:04:17 +01:00
const Vector& getColor() const;
float getAlpha() const;
float getShininess() const;
int getBlend() const;
int getFX() const;
Texture getTexture(int index) const;
2014-01-31 08:23:00 +13:00
2019-01-18 17:04:17 +01:00
const gxScene::RenderState& getRenderState() const;
2014-01-31 08:23:00 +13:00
2019-01-18 17:04:17 +01:00
bool operator<(const Brush& b) const;
2014-01-31 08:23:00 +13:00
2019-01-18 17:04:17 +01:00
private:
2014-01-31 08:23:00 +13:00
struct Rep;
2019-01-18 17:04:17 +01:00
mutable Rep* rep;
2014-01-31 08:23:00 +13:00
2019-01-18 17:04:17 +01:00
Rep* write() const;
2014-01-31 08:23:00 +13:00
};
#endif