NGL  6.5
The NCCA Graphics Library
NCCABinMesh.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 Jon Macey
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 #ifndef NCCABINMESH_H_
18 #define NCCABINMESH_H_
19 //----------------------------------------------------------------------------------------------------------------------
22 // must include types.h first for Real and GLEW if required
23 //----------------------------------------------------------------------------------------------------------------------
24 #include "Types.h"
25 #include "AbstractMesh.h"
26 #include "BBox.h"
27 #include "RibExport.h"
28 #include "Texture.h"
29 #include "Vec4.h"
30 #include <string>
31 #include <vector>
32 
33 namespace ngl
34 {
35 //----------------------------------------------------------------------------------------------------------------------
44 //----------------------------------------------------------------------------------------------------------------------
45 
47 {
48 
49 public :
50 
51  //----------------------------------------------------------------------------------------------------------------------
53  //----------------------------------------------------------------------------------------------------------------------
54  NCCABinMesh() noexcept{;}
55  //----------------------------------------------------------------------------------------------------------------------
58  //----------------------------------------------------------------------------------------------------------------------
59  NCCABinMesh( const std::string& _fname ) noexcept;
60  //----------------------------------------------------------------------------------------------------------------------
64  //----------------------------------------------------------------------------------------------------------------------
65  NCCABinMesh( const std::string& _fname, const std::string& _texName) noexcept;
66  //----------------------------------------------------------------------------------------------------------------------
69  //----------------------------------------------------------------------------------------------------------------------
70  bool load( const std::string& _fname, bool _calcBB=true) noexcept;
71  //----------------------------------------------------------------------------------------------------------------------
74  //----------------------------------------------------------------------------------------------------------------------
75  void save( const std::string& _fname) noexcept;
76 
77 protected :
78 
79  // not data all in parent
80 };
81 
82 }
83 
84 
85 #endif
86 //----------------------------------------------------------------------------------------------------------------------
87 
a simple texture loader / GL texture object
NCCABinMesh() noexcept
default constructor
Definition: NCCABinMesh.h:54
main definition of types and namespace
#define NGL_DLLEXPORT
Definition: Types.h:65
a series of classes used to define an abstract 3D mesh of Faces, Vertex Normals and TexCords ...
implementation files for RibExport class
Definition: AABB.cpp:22
encapsulates a 4d Homogenous Point / Vector object
an abstract base mesh used to build specific meshes such as Obj
Definition: AbstractMesh.h:105
a simple rib exporter function
a simple bounding box class
basically this class Loads the contents of the current VBO to file, this is basically the AbstractMes...
Definition: NCCABinMesh.h:46
GLsizei const GLchar *const * string
Definition: glew.h:1847