Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:36

0001 /* @(#)root/g3d:$Id$ */
0002 /* Author: Nenad Buncic   13/12/95*/
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_X3DBuffer
0013 #define ROOT_X3DBuffer
0014 
0015 typedef struct _x3d_data_ {
0016    int  numPoints;
0017    int  numSegs;
0018    int  numPolys;
0019    float *points; /* x0, y0, z0, x1, y1, z1, ..... ..... ....    */
0020    int *segs;     /* c0, p0, q0, c1, p1, q1, ..... ..... ....    */
0021    int *polys;    /* c0, n0, s0, s1, ... sn, c1, n1, s0, ... sn  */
0022 } X3DBuffer;
0023 
0024 typedef struct _x3d_sizeof_ {
0025    int  numPoints;
0026    int  numSegs;
0027    int  numPolys;
0028 } Size3D;
0029 
0030 #ifdef __cplusplus
0031 extern "C" int AllocateX3DBuffer ();
0032 extern "C" void FillX3DBuffer (X3DBuffer *buff);
0033 extern "C" Size3D* gFuncSize3D();
0034 #else
0035 extern int AllocateX3DBuffer ();
0036 extern void FillX3DBuffer (X3DBuffer *buff);
0037 extern Size3D* gFuncSize3D();
0038 #endif
0039 
0040 #define gSize3D (*gFuncSize3D())
0041 
0042 #endif