Oxygine  1
2g game engine
Polygon.h
1 #pragma once
2 #include "oxygine-include.h"
3 #include "Sprite.h"
4 
5 namespace oxygine
6 {
7  DECLARE_SMART(Polygon, spPolygon);
8  class Polygon : public Sprite
9  {
10  INHERITED(Sprite);
11  public:
12  DECLARE_COPYCLONE_NEW(Polygon);
13 
14  Polygon();
15  ~Polygon();
16 
20  void setVertices(const void* data, int size, int bformat, bool own);
21 
22  void serialize(serializedata* data) override;
23  void deserialize(const deserializedata* data) override;
24 
25  std::string dump(const dumpOptions&) const override;
26 
27  protected:
28  void doRender(const RenderState&) override;
29 
30  const VertexDeclaration* _vdecl;
31  bool _own;
32  const unsigned char* _verticesData;
33  int _verticesSize;
34  };
35 }
36 
37 EDITOR_INCLUDE(Polygon);
Definition: Polygon.h:8
Definition: Serialize.h:28
Definition: VertexDeclaration.h:6
Definition: Sprite.h:14
void setVertices(const void *data, int size, int bformat, bool own)
Definition: RenderState.h:27
Definition: Serialize.h:21
–oxgl-end–!
Definition: Actor.h:14
std::string dump(const dumpOptions &) const override