X3DBuffer.h

Go to the documentation of this file.
00001 /* @(#)root/g3d:$Id: X3DBuffer.h 20882 2007-11-19 11:31:26Z rdm $ */
00002 /* Author: Nenad Buncic   13/12/95*/
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_X3DBuffer
00013 #define ROOT_X3DBuffer
00014 
00015 #include "DllImport.h"
00016 
00017 typedef struct _x3d_data_ {
00018    int  numPoints;
00019    int  numSegs;
00020    int  numPolys;
00021    float *points; /* x0, y0, z0, x1, y1, z1, ..... ..... ....    */
00022    int *segs;     /* c0, p0, q0, c1, p1, q1, ..... ..... ....    */
00023    int *polys;    /* c0, n0, s0, s1, ... sn, c1, n1, s0, ... sn  */
00024 } X3DBuffer;
00025 
00026 typedef struct _x3d_sizeof_ {
00027    int  numPoints;
00028    int  numSegs;
00029    int  numPolys;
00030 } Size3D;
00031 
00032 #ifdef __cplusplus
00033 extern "C" int AllocateX3DBuffer ();
00034 extern "C" void FillX3DBuffer (X3DBuffer *buff);
00035 extern "C" Size3D* gFuncSize3D();
00036 #else
00037 extern int AllocateX3DBuffer ();
00038 extern void FillX3DBuffer (X3DBuffer *buff);
00039 extern Size3D* gFuncSize3D();
00040 #endif
00041 
00042 #define gSize3D (*gFuncSize3D())
00043 
00044 #endif

Generated on Tue Jul 5 14:16:30 2011 for ROOT_528-00b_version by  doxygen 1.5.1