NGL
6.5
The NCCA Graphics Library
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
46
class
NGL_DLLEXPORT
NCCABinMesh
:
public
AbstractMesh
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
Texture.h
a simple texture loader / GL texture object
ngl::NCCABinMesh::NCCABinMesh
NCCABinMesh() noexcept
default constructor
Definition:
NCCABinMesh.h:54
Types.h
main definition of types and namespace
NGL_DLLEXPORT
#define NGL_DLLEXPORT
Definition:
Types.h:65
AbstractMesh.h
a series of classes used to define an abstract 3D mesh of Faces, Vertex Normals and TexCords ...
ngl
implementation files for RibExport class
Definition:
AABB.cpp:22
Vec4.h
encapsulates a 4d Homogenous Point / Vector object
ngl::AbstractMesh
an abstract base mesh used to build specific meshes such as Obj
Definition:
AbstractMesh.h:105
RibExport.h
a simple rib exporter function
BBox.h
a simple bounding box class
ngl::NCCABinMesh
basically this class Loads the contents of the current VBO to file, this is basically the AbstractMes...
Definition:
NCCABinMesh.h:46
string
GLsizei const GLchar *const * string
Definition:
glew.h:1847
Users
jmacey
NGL
include
ngl
NCCABinMesh.h
Generated on Mon Nov 28 2016 19:40:27 for NGL by
1.8.11