|
@@ -54,13 +54,13 @@ prepare_filename(Filename &fn) {
|
|
|
// Access: Published
|
|
// Access: Published
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-PT(PhysxConvexMesh) PhysxMeshPool::
|
|
|
|
|
|
|
+PhysxConvexMesh *PhysxMeshPool::
|
|
|
load_convex_mesh(const Filename &filename) {
|
|
load_convex_mesh(const Filename &filename) {
|
|
|
|
|
|
|
|
Filename fn(filename);
|
|
Filename fn(filename);
|
|
|
if (!prepare_filename(fn)) return NULL;
|
|
if (!prepare_filename(fn)) return NULL;
|
|
|
|
|
|
|
|
- PT(PhysxConvexMesh) mesh;
|
|
|
|
|
|
|
+ PhysxConvexMesh *mesh;
|
|
|
|
|
|
|
|
ConvexMeshes::iterator it = _convex_meshes.find(fn);
|
|
ConvexMeshes::iterator it = _convex_meshes.find(fn);
|
|
|
if (it == _convex_meshes.end()) {
|
|
if (it == _convex_meshes.end()) {
|
|
@@ -94,13 +94,13 @@ load_convex_mesh(const Filename &filename) {
|
|
|
// Access: Published
|
|
// Access: Published
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
-PT(PhysxTriangleMesh) PhysxMeshPool::
|
|
|
|
|
|
|
+PhysxTriangleMesh *PhysxMeshPool::
|
|
|
load_triangle_mesh(const Filename &filename) {
|
|
load_triangle_mesh(const Filename &filename) {
|
|
|
|
|
|
|
|
Filename fn(filename);
|
|
Filename fn(filename);
|
|
|
if (!prepare_filename(fn)) return NULL;
|
|
if (!prepare_filename(fn)) return NULL;
|
|
|
|
|
|
|
|
- PT(PhysxTriangleMesh) mesh;
|
|
|
|
|
|
|
+ PhysxTriangleMesh *mesh;
|
|
|
|
|
|
|
|
TriangleMeshes::iterator it = _triangle_meshes.find(fn);
|
|
TriangleMeshes::iterator it = _triangle_meshes.find(fn);
|
|
|
if (it == _triangle_meshes.end()) {
|
|
if (it == _triangle_meshes.end()) {
|
|
@@ -135,7 +135,7 @@ load_triangle_mesh(const Filename &filename) {
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
bool PhysxMeshPool::
|
|
bool PhysxMeshPool::
|
|
|
-release_convex_mesh(PT(PhysxConvexMesh) mesh) {
|
|
|
|
|
|
|
+release_convex_mesh(PhysxConvexMesh *mesh) {
|
|
|
|
|
|
|
|
ConvexMeshes::iterator it;
|
|
ConvexMeshes::iterator it;
|
|
|
for (it=_convex_meshes.begin(); it != _convex_meshes.end(); ++it) {
|
|
for (it=_convex_meshes.begin(); it != _convex_meshes.end(); ++it) {
|
|
@@ -154,7 +154,7 @@ release_convex_mesh(PT(PhysxConvexMesh) mesh) {
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
bool PhysxMeshPool::
|
|
bool PhysxMeshPool::
|
|
|
-release_triangle_mesh(PT(PhysxTriangleMesh) mesh) {
|
|
|
|
|
|
|
+release_triangle_mesh(PhysxTriangleMesh *mesh) {
|
|
|
|
|
|
|
|
TriangleMeshes::iterator it;
|
|
TriangleMeshes::iterator it;
|
|
|
for (it=_triangle_meshes.begin(); it != _triangle_meshes.end(); ++it) {
|
|
for (it=_triangle_meshes.begin(); it != _triangle_meshes.end(); ++it) {
|
|
@@ -192,7 +192,7 @@ list_contents( ostream &out ) {
|
|
|
ConvexMeshes::const_iterator it;
|
|
ConvexMeshes::const_iterator it;
|
|
|
for (it=_convex_meshes.begin(); it != _convex_meshes.end(); ++it) {
|
|
for (it=_convex_meshes.begin(); it != _convex_meshes.end(); ++it) {
|
|
|
Filename fn = (*it).first;
|
|
Filename fn = (*it).first;
|
|
|
- PT(PhysxConvexMesh) mesh = (*it).second;
|
|
|
|
|
|
|
+ PhysxConvexMesh *mesh = (*it).second;
|
|
|
|
|
|
|
|
out << " " << fn.get_fullpath()
|
|
out << " " << fn.get_fullpath()
|
|
|
<< " (convex mesh, " << mesh->ptr()->getReferenceCount()
|
|
<< " (convex mesh, " << mesh->ptr()->getReferenceCount()
|
|
@@ -205,7 +205,7 @@ list_contents( ostream &out ) {
|
|
|
TriangleMeshes::const_iterator it;
|
|
TriangleMeshes::const_iterator it;
|
|
|
for (it=_triangle_meshes.begin(); it != _triangle_meshes.end(); ++it) {
|
|
for (it=_triangle_meshes.begin(); it != _triangle_meshes.end(); ++it) {
|
|
|
Filename fn = (*it).first;
|
|
Filename fn = (*it).first;
|
|
|
- PT(PhysxTriangleMesh) mesh = (*it).second;
|
|
|
|
|
|
|
+ PhysxTriangleMesh *mesh = (*it).second;
|
|
|
|
|
|
|
|
out << " " << fn.get_fullpath()
|
|
out << " " << fn.get_fullpath()
|
|
|
<< " (triangle mesh, " << mesh->ptr()->getReferenceCount()
|
|
<< " (triangle mesh, " << mesh->ptr()->getReferenceCount()
|