KiCad PCB EDA Suite
Loading...
Searching...
No Matches
c3dmodel.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2015 Mario Luzeiro <[email protected]>
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
25
26
27#ifndef C3DMODEL_H
28#define C3DMODEL_H
29
31
32
34{
39 float m_Shininess; //
41
42 // !TODO: to be implemented
43 /*struct textures
44 {
45 wxString m_Ambient; // map_Ka
46 wxString m_Diffuse; // map_Kd
47 wxString m_Specular; // map_Ks
48 wxString m_Specular_highlight; // map_Ns
49 wxString m_Bump; // map_bump, bump
50 wxString m_Displacement; // disp
51 wxString m_Alpha; // map_d
52 };*/
53};
54
55
87
88
91{
92 unsigned int m_MeshesSize;
94
95 unsigned int m_MaterialsSize;
97};
98
99#endif // C3DMODEL_H
Store the a model based on meshes and materials.
Definition c3dmodel.h:91
SMATERIAL * m_Materials
The materials list of this model.
Definition c3dmodel.h:96
unsigned int m_MeshesSize
Number of meshes in the array.
Definition c3dmodel.h:92
SMESH * m_Meshes
The meshes list of this model.
Definition c3dmodel.h:93
unsigned int m_MaterialsSize
Number of materials in the material array.
Definition c3dmodel.h:95
float m_Shininess
Definition c3dmodel.h:39
SFVEC3F m_Specular
Definition c3dmodel.h:38
SFVEC3F m_Ambient
Definition c3dmodel.h:35
float m_Transparency
1.0 is completely transparent, 0.0 completely opaque
Definition c3dmodel.h:40
SFVEC3F m_Emissive
Definition c3dmodel.h:37
SFVEC3F m_Diffuse
Default diffuse color if m_Color is NULL.
Definition c3dmodel.h:36
Per-vertex normal/color/texcoors structure.
Definition c3dmodel.h:77
unsigned int * m_FaceIdx
Triangle Face Indexes.
Definition c3dmodel.h:84
SFVEC3F * m_Normals
Vertex normals array.
Definition c3dmodel.h:80
unsigned int m_MaterialIdx
Material Index to be used in this mesh (must be < m_MaterialsSize )
Definition c3dmodel.h:85
unsigned int m_VertexSize
Number of vertex in the arrays.
Definition c3dmodel.h:78
SFVEC2F * m_Texcoords
Vertex texture coordinates array, can be NULL.
Definition c3dmodel.h:81
unsigned int m_FaceIdxSize
Number of elements of the m_FaceIdx array.
Definition c3dmodel.h:83
SFVEC3F * m_Color
Vertex color array, can be NULL.
Definition c3dmodel.h:82
SFVEC3F * m_Positions
Vertex position array.
Definition c3dmodel.h:79
glm::vec2 SFVEC2F
Definition xv3d_types.h:38
glm::vec3 SFVEC3F
Definition xv3d_types.h:40