Panda3D
Functions
geomMunger.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "geomMunger.h"
#include "geom.h"
#include "geomCacheManager.h"
#include "lightMutexHolder.h"
#include "lightReMutexHolder.h"
#include "pStatTimer.h"

Go to the source code of this file.

Functions

 CPT (GeomVertexFormat) GeomMunger
 The protected implementation of munge_format(). More...
 
 CPT (GeomVertexData) GeomMunger
 Given a source GeomVertexData, converts it as necessary for rendering. More...
 
 PT (GeomMunger) GeomMunger
 Adds the indicated munger to the registry, if there is not an equivalent munger already there; in either case, returns the pointer to the equivalent munger now in the registry. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2005-03-10

Definition in file geomMunger.cxx.

Function Documentation

◆ CPT() [1/2]

CPT ( GeomVertexFormat  )

The protected implementation of munge_format().

The protected implementation of premunge_format().

Given a source GeomVertexFormat, converts it if necessary to the appropriate format for rendering.

This exists just to cast away the const pointer.

Definition at line 179 of file geomMunger.cxx.

◆ CPT() [2/2]

CPT ( GeomVertexData  )

Given a source GeomVertexData, converts it as necessary for rendering.

Definition at line 219 of file geomMunger.cxx.

◆ PT()

PT ( GeomMunger  )

Adds the indicated munger to the registry, if there is not an equivalent munger already there; in either case, returns the pointer to the equivalent munger now in the registry.

This must be called before a munger may be used in a Geom. After this call, you should discard the original pointer you passed in (which may or may not now be invalid) and let its reference count decrement normally; you should use only the returned value from this point on.

Definition at line 402 of file geomMunger.cxx.

References GeomMunger::is_registered().