OpenStructure
map_iso_gen_s.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2020 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef OST_MAP_ISO_GEN_S_HH
20 #define OST_MAP_ISO_GEN_S_HH
21 
22 /*
23  Author: Ansgar Philippsen
24 */
25 
26 #include <vector>
27 
28 #include <ost/geom/geom.hh>
29 #include <ost/img/map.hh>
30 
31 #include <ost/gfx/map_iso_prop.hh>
32 #include "map_iso_gen.hh" // for AddLFList
33 
34 
35 namespace ost { namespace gfx { namespace impl {
36 
37 // \internal
39 public:
40  // singleton
42 
44 
45  void Generate(const img::MapHandle& mh, IndexedVertexArray& va, float level);
46  private:
47 
48  uint slab_tex_[2];
49  uint slab_id_[2];
50 
51 };
52 
53 }}}
54 
55 #endif
static IsosurfaceGeneratorS & Instance()
void Generate(const img::MapHandle &mh, IndexedVertexArray &va, float level)
Manage shared instances of images.
#define DLLEXPORT_OST_GFX
unsigned int uint
Definition: base.hh:29
Definition: base.dox:1