Panda3D

odeTriMeshData.I

00001 // Filename: odeTriMeshData.I
00002 // Created by:  joswilso (27Dec06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 INLINE dTriMeshDataID OdeTriMeshData::
00016 get_id() const {
00017   return _id;
00018 }
00019 
00020 /*
00021 INLINE void OdeTriMeshData::
00022 set(int data_id, void* in_data) {
00023   dGeomTriMeshDataSet(_id, data_id, in_data);
00024 }
00025 
00026 INLINE void* OdeTriMeshData::
00027 get(int data_id) {
00028   dGeomTriMeshDataGet(_id,data_id);
00029 }
00030 */
00031 
00032 INLINE void OdeTriMeshData::
00033 build_single(const void* vertices, int vertex_stride, int vertex_count, const void* indices, int index_count, int tri_stride) {
00034   odetrimeshdata_cat.debug() << "build_single(" << vertices << ", " << vertex_stride << ", " << vertex_count << ", " << indices << ", " << index_count << ", " << tri_stride << ")\n";
00035   dGeomTriMeshDataBuildSingle(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride);
00036 }
00037 
00038 INLINE void OdeTriMeshData::
00039 build_single1(const void* vertices, int vertex_stride, int vertex_count, const void* indices, int index_count, int tri_stride, const void* normals) {
00040   dGeomTriMeshDataBuildSingle1(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride, normals);
00041 }
00042 
00043 INLINE void OdeTriMeshData::
00044 build_double(const void* vertices, int vertex_stride, int vertex_count, const void* indices, int index_count, int tri_stride) {
00045   dGeomTriMeshDataBuildDouble(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride);
00046 }
00047 
00048 INLINE void OdeTriMeshData::
00049 build_double1(const void* vertices, int vertex_stride, int vertex_count, const void* indices, int index_count, int tri_stride, const void* normals) {
00050   dGeomTriMeshDataBuildDouble1(_id, vertices, vertex_stride, vertex_count, indices, index_count, tri_stride, normals);
00051 }
00052 
00053 /*
00054 INLINE void OdeTriMeshData::
00055 build_simple(const dReal* vertices, int vertex_count, const int* indices, int index_count) {
00056   dGeomTriMeshDataBuildSimple(_id, vertices, vertex_count, indices, index_count);
00057 }
00058 */
00059 
00060 /*
00061 INLINE void OdeTriMeshData::
00062 build_simple1(const dReal* vertices, int vertex_count, const int* indices, int index_count, const int* normals) {
00063   dGeomTriMeshDataBuildSimple1(_id, vertices, vertex_count, indices, index_count, normals);
00064 }
00065 */
00066 
00067 INLINE void OdeTriMeshData::
00068 preprocess() {
00069   dGeomTriMeshDataPreprocess(_id);
00070 }
00071 
00072 /*
00073 INLINE void OdeTriMeshData::
00074 get_buffer(unsigned char** buf, int* buf_len) const {
00075   return dGeomTriMeshDataGetBuffer(_id, buf, buf_len);
00076 }
00077 
00078 INLINE void OdeTriMeshData::
00079 set_buffer(unsigned char* buf) {
00080   dGeomTriMeshDataSetBuffer(_id, buf);
00081 }
00082 
00083 INLINE void OdeTriMeshData::
00084 update() {
00085   dGeomTriMeshDataUpdate(_id);
00086 }
00087 
00088 */
 All Classes Functions Variables Enumerations