133 #ifdef OPC_USE_CALLBACKS
139 #ifdef OPC_USE_STRIDE
141 mVertexStride (sizeof(
Point)),
166 if(!mNbTris || !mNbVerts)
return false;
167 #ifdef OPC_USE_CALLBACKS 168 if(!mObjCallback)
return false;
170 if(!mTris || !mVerts)
return false;
206 #ifdef OPC_USE_CALLBACKS 214 bool MeshInterface::SetCallback(RequestCallback callback,
void* user_data)
217 if(!callback)
return SetIceError(
"MeshInterface::SetCallback: callback pointer is null");
219 mObjCallback = callback;
220 mUserData = user_data;
234 if(!tris || !verts)
return SetIceError(
"MeshInterface::SetPointers: pointer is null",
null);
240 #ifdef OPC_USE_STRIDE 248 bool MeshInterface::SetStrides(
udword tri_stride,
udword vertex_stride)
252 if(vertex_stride<
sizeof(
Point))
return SetIceError(
"MeshInterface::SetStrides: invalid vertex stride",
null);
254 mTriStride = tri_stride;
255 mVertexStride = vertex_stride;
272 if(!nb_indices || !permutation)
return false;
273 if(nb_indices!=mNbTris)
return false;
275 #ifdef OPC_USE_CALLBACKS 282 #ifdef OPC_USE_STRIDE 283 udword Stride = mTriStride;
297 *T = Tmp[permutation[
i]];
#define null
our own NULL pointer
bool SetPointers(const IndexedTriangle *tris, const Point *verts)
#define DELETEARRAY(x)
Deletes an array.
#define SetIceError(a, b)
static Point VertexCache[3]
unsigned int udword
sizeof(udword) must be 4
unsigned char ubyte
sizeof(ubyte) must be 1
udword CheckTopology() const
bool RemapClient(udword nb_indices, const udword *permutation) const