Panda3D
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
PhysxMeshPool Class Reference

This class unifies all references to the same filename, so that multiple attempts to load the same mesh will return the same pointer. More...

#include "physxMeshPool.h"

Static Public Member Functions

static void list_contents ()
 
static void list_contents (std::ostream &out)
 
static PhysxClothMeshload_cloth_mesh (const Filename &filename)
 
static PhysxConvexMeshload_convex_mesh (const Filename &filename)
 
static PhysxSoftBodyMeshload_soft_body_mesh (const Filename &filename)
 
static PhysxTriangleMeshload_triangle_mesh (const Filename &filename)
 
static bool release_cloth_mesh (PhysxClothMesh *mesh)
 
static bool release_convex_mesh (PhysxConvexMesh *mesh)
 
static bool release_soft_body_mesh (PhysxSoftBodyMesh *mesh)
 
static bool release_triangle_mesh (PhysxTriangleMesh *mesh)
 

Detailed Description

This class unifies all references to the same filename, so that multiple attempts to load the same mesh will return the same pointer.

The mesh filename is automatically resolved before an attempt to load the mesh is made.

Definition at line 36 of file physxMeshPool.h.

Constructor & Destructor Documentation

◆ PhysxMeshPool()

PhysxMeshPool::PhysxMeshPool ( )
inline

Definition at line 17 of file physxMeshPool.I.

◆ ~PhysxMeshPool()

PhysxMeshPool::~PhysxMeshPool ( )
inline

Definition at line 25 of file physxMeshPool.I.

Member Function Documentation

◆ list_contents() [1/2]

void PhysxMeshPool::list_contents ( )
static

Definition at line 266 of file physxMeshPool.cxx.

◆ list_contents() [2/2]

void PhysxMeshPool::list_contents ( std::ostream & out)
static

Definition at line 274 of file physxMeshPool.cxx.

◆ load_cloth_mesh()

PhysxClothMesh * PhysxMeshPool::load_cloth_mesh ( const Filename & filename)
static

Definition at line 124 of file physxMeshPool.cxx.

◆ load_convex_mesh()

PhysxConvexMesh * PhysxMeshPool::load_convex_mesh ( const Filename & filename)
static

Definition at line 50 of file physxMeshPool.cxx.

◆ load_soft_body_mesh()

PhysxSoftBodyMesh * PhysxMeshPool::load_soft_body_mesh ( const Filename & filename)
static

Definition at line 161 of file physxMeshPool.cxx.

◆ load_triangle_mesh()

PhysxTriangleMesh * PhysxMeshPool::load_triangle_mesh ( const Filename & filename)
static

Definition at line 87 of file physxMeshPool.cxx.

◆ release_cloth_mesh()

bool PhysxMeshPool::release_cloth_mesh ( PhysxClothMesh * mesh)
static

Definition at line 232 of file physxMeshPool.cxx.

◆ release_convex_mesh()

bool PhysxMeshPool::release_convex_mesh ( PhysxConvexMesh * mesh)
static

Definition at line 198 of file physxMeshPool.cxx.

◆ release_soft_body_mesh()

bool PhysxMeshPool::release_soft_body_mesh ( PhysxSoftBodyMesh * mesh)
static

Definition at line 249 of file physxMeshPool.cxx.

◆ release_triangle_mesh()

bool PhysxMeshPool::release_triangle_mesh ( PhysxTriangleMesh * mesh)
static

Definition at line 215 of file physxMeshPool.cxx.


The documentation for this class was generated from the following files: