Panda3D

Loading...
Searching...
No Matches
physxConvexMeshDesc.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxConvexMeshDesc.h
10 * @author enn0x
11 * @date 2009-10-11
12 */
13
14#ifndef PHYSXCONVEXMESHDESC_H
15#define PHYSXCONVEXMESHDESC_H
16
17#include "pandabase.h"
18#include "luse.h"
19#include "nodePath.h"
20
21#include "physx_includes.h"
22
23/**
24 *
25 */
26 class EXPCL_PANDAPHYSX PhysxConvexMeshDesc {
27
28PUBLISHED:
29 INLINE PhysxConvexMeshDesc();
30 INLINE ~PhysxConvexMeshDesc();
31
32 INLINE bool is_valid() const;
33
34 void set_num_vertices(unsigned int n);
35 void set_vertex(unsigned int idx, const LPoint3f &vert);
36 void set_from_node_path(const NodePath &np);
37
38 public:
39 const NxConvexMeshDesc &get_desc() const;
40
41 private:
42 NxVec3 *_vertices;
43 NxConvexMeshDesc _desc;
44};
45
46#include "physxConvexMeshDesc.I"
47
48#endif // PHYSXCONVEXMESHDESC_H
NodePath
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition nodePath.h:159
PhysxConvexMeshDesc::set_vertex
void set_vertex(unsigned int idx, const LPoint3f &vert)
Sets a single vertex.
Definition physxConvexMeshDesc.cxx:50
PhysxConvexMeshDesc::is_valid
bool is_valid() const
Returns true if the descriptor is valid.
Definition physxConvexMeshDesc.I:42
PhysxConvexMeshDesc::set_from_node_path
void set_from_node_path(const NodePath &np)
A convenience method to set the mesh data from a NodePath in a single call.
Definition physxConvexMeshDesc.cxx:74
PhysxConvexMeshDesc::set_num_vertices
void set_num_vertices(unsigned int n)
Sets the number of vertices to be stored within this convex mesh.
Definition physxConvexMeshDesc.cxx:31
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
nodePath.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxConvexMeshDesc.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.