Panda3D

Functions
geomVertexArrayFormat.cxx File Reference

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

`#include "geomVertexFormat.h"`
`#include "geomVertexColumn.h"`
`#include "geomVertexData.h"`
`#include "geomVertexReader.h"`
`#include "indent.h"`
`#include "bamReader.h"`
`#include "bamWriter.h"`
`#include "indirectLess.h"`
`#include "lightMutexHolder.h"`

Go to the source code of this file.

## Functions
| CPT (GeomVertexArrayFormat) GeomVertexArrayFormat
| Adds the indicated format to the registry, if there is not an equivalent format already there; in either case, returns the pointer to the equivalent format 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-06

Definition in file geomVertexArrayFormat.cxx.

## Function Documentation

## ◆ CPT()

CPT | ( | GeomVertexArrayFormat |  | ) |

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

This must be called before a format 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 828 of file geomVertexArrayFormat.cxx.

References GeomVertexArrayFormat::is_registered.