blob: 65a95d239f7dc6083f7d143dd369fd8897325e55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef POINTSPRITE_H
#define POINTSPRITE_H
#include "texture.h"
#include "vector.h"
class PointSprite {
public:
PointSprite(float _size, const Texture& _texture);
void draw(const Vector2& pos) const;
void draw_array(void* ptr, unsigned int coords, unsigned int stride, unsigned int first, unsigned int num);
private:
float size;
const Texture& texture;
};
#endif
|