2
* Copyright Staffan Gimåker 2008-2009.
6
* This file is part of peekabot.
8
* peekabot is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* peekabot is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef PEEKABOT_RENDERER_API_VERTEX_BASED_PROXY_HH_INCLUDED
23
#define PEEKABOT_RENDERER_API_VERTEX_BASED_PROXY_HH_INCLUDED
28
#include "../../Vector.hh"
29
#include "ObjectEntityProxy.hh"
38
class VertexBasedProxy : virtual public ObjectEntityProxy
41
typedef std::vector<Vector3f> Vertices;
43
void set_vertices(const Vertices &verts);
45
void add_vertices(const Vertices &verts);
47
void clear_vertices();
49
//void overwrite(size_t pos, const Vertices &verts);
52
VertexBasedProxy(Renderer &renderer);
59
#endif // PEEKABOT_RENDERER_API_VERTEX_BASED_PROXY_HH_INCLUDED