ScummVM API documentation
te_pick_mesh.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (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 <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef TETRAEDGE_TE_TE_PICK_MESH_H
23
#define TETRAEDGE_TE_TE_PICK_MESH_H
24
25
#include "tetraedge/te/te_vector3f32.h"
26
27
#include "common/array.h"
28
29
namespace
Tetraedge
{
30
31
class
TePickMesh
{
32
public
:
33
TePickMesh
();
34
TePickMesh
(
const
TePickMesh
&other);
35
36
void
copy(
const
TePickMesh
&other);
37
// void create(); // unused
38
void
destroy();
39
void
getTriangle(uint triNum,
TeVector3f32
&v1,
TeVector3f32
&v2,
TeVector3f32
&v3)
const
;
40
bool
intersect(
const
Math::Ray &ray,
TeVector3f32
&ptOut,
float
&lenOut)
const
;
41
void
nbTriangles(uint nTriangles);
42
TePickMesh
&operator+=(
const
TePickMesh
&other);
43
TePickMesh
&operator=(
const
TePickMesh
&other);
44
// bool operator==(const TePickMesh &other) const; // unused
45
void
setTriangle(uint triNum,
const
TeVector3f32
&v1,
const
TeVector3f32
&v2,
const
TeVector3f32
&v3);
46
47
void
setName(
const
Common::String
&name) { _name = name; }
48
void
setEnabled(
bool
val) { _enabled = val; }
49
bool
enabled()
const
{
return
_enabled; }
50
const
Common::String
&name()
const
{
return
_name; }
51
uint nTriangles()
const
{
return
_verticies.size() / 3; }
52
53
private
:
54
bool
_enabled;
55
Common::Array<TeVector3f32>
_verticies;
56
Common::String
_name;
57
TeVector3f32
_v1;
58
TeVector3f32
_v2;
59
TeVector3f32
_v3;
60
};
61
62
}
// end namespace Tetraedge
63
64
#endif // TETRAEDGE_TE_TE_PICK_MESH_H
Common::String
Definition:
str.h:59
Tetraedge
Definition:
detection.h:27
Common::Array
Definition:
array.h:52
Tetraedge::TePickMesh
Definition:
te_pick_mesh.h:31
Tetraedge::TeVector3f32
Definition:
te_vector3f32.h:33
engines
tetraedge
te
te_pick_mesh.h
Generated on Fri Nov 22 2024 09:24:57 for ScummVM API documentation by
1.8.13