Panda3D
Functions
geomVertexData.I File Reference

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

Go to the source code of this file.

Functions

 CPT (GeomVertexArrayData) GeomVertexData
 Returns a const pointer to the vertex data for the indicated array, for application code to directly examine (but not modify) the underlying vertex data. More...
 
 CPT (TransformBlendTable) GeomVertexData
 Returns a const pointer to the TransformBlendTable assigned to this data. More...
 
std::ostream & operator<< (std::ostream &out, const GeomVertexData &obj)
 
 PT (GeomVertexArrayDataHandle) GeomVertexData
 Equivalent to modify_array(i).modify_handle(). 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 geomVertexData.I.

Function Documentation

◆ CPT() [1/2]

CPT ( GeomVertexArrayData  )
inline

Returns a const pointer to the vertex data for the indicated array, for application code to directly examine (but not modify) the underlying vertex data.

Equivalent to get_array(i).get_handle(). Returns a modifiable pointer to the indicated vertex array, so that application code may directly manipulate the data. You should avoid changing the length of this array, since all of the arrays should be kept in sync–use set_num_rows() instead.

Don't call this in a downstream thread unless you don't mind it blowing away other changes you might have recently made in an upstream thread.

Definition at line 154 of file geomVertexData.I.

◆ CPT() [2/2]

CPT ( TransformBlendTable  )
inline

Returns a const pointer to the TransformBlendTable assigned to this data.

Vertices within the table will index into this table to indicate their dynamic skinning information; this table is used when the vertex animation is to be performed by the CPU (but also see get_transform_table()).

This will return NULL if the vertex data does not have a TransformBlendTable assigned (which implies the vertices will not be animated by the CPU). Sets the TransformBlendTable pointer to NULL, removing the table from the vertex data. This disables CPU-driven vertex animation.

Definition at line 247 of file geomVertexData.I.

◆ PT()

PT ( GeomVertexArrayDataHandle  )
inline

Equivalent to modify_array(i).modify_handle().

Definition at line 190 of file geomVertexData.I.