ROOT
6.08/07
Reference Guide
graf3d
g3d
inc
X3DBuffer.h
Go to the documentation of this file.
1
/* @(#)root/g3d:$Id$ */
2
/* Author: Nenad Buncic 13/12/95*/
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_X3DBuffer
13
#define ROOT_X3DBuffer
14
15
#include "
DllImport.h
"
16
17
typedef
struct
_x3d_data_
{
18
int
numPoints
;
19
int
numSegs
;
20
int
numPolys
;
21
float
*
points
;
/* x0, y0, z0, x1, y1, z1, ..... ..... .... */
22
int
*
segs
;
/* c0, p0, q0, c1, p1, q1, ..... ..... .... */
23
int
*
polys
;
/* c0, n0, s0, s1, ... sn, c1, n1, s0, ... sn */
24
}
X3DBuffer
;
25
26
typedef
struct
_x3d_sizeof_
{
27
int
numPoints
;
28
int
numSegs
;
29
int
numPolys
;
30
}
Size3D
;
31
32
#ifdef __cplusplus
33
extern
"C"
int
AllocateX3DBuffer
();
34
extern
"C"
void
FillX3DBuffer
(
X3DBuffer
*buff);
35
extern
"C"
Size3D
*
gFuncSize3D
();
36
#else
37
extern
int
AllocateX3DBuffer
();
38
extern
void
FillX3DBuffer
(
X3DBuffer
*buff);
39
extern
Size3D
*
gFuncSize3D
();
40
#endif
41
42
#define gSize3D (*gFuncSize3D())
43
44
#endif
X3DBuffer
struct _x3d_data_ X3DBuffer
_x3d_data_::numPolys
int numPolys
Definition:
X3DBuffer.h:20
gFuncSize3D
Size3D * gFuncSize3D()
Definition:
TVirtualPad.cxx:25
_x3d_data_::numSegs
int numSegs
Definition:
X3DBuffer.h:19
_x3d_data_::polys
int * polys
Definition:
X3DBuffer.h:23
_x3d_data_::points
float * points
Definition:
X3DBuffer.h:21
FillX3DBuffer
void FillX3DBuffer(X3DBuffer *buff)
Definition:
X3DBuffer.c:140
_x3d_sizeof_::numPoints
int numPoints
Definition:
X3DBuffer.h:27
_x3d_data_::segs
int * segs
Definition:
X3DBuffer.h:22
Size3D
struct _x3d_sizeof_ Size3D
_x3d_sizeof_::numSegs
int numSegs
Definition:
X3DBuffer.h:28
DllImport.h
_x3d_sizeof_
Definition:
X3DBuffer.h:26
_x3d_sizeof_::numPolys
int numPolys
Definition:
X3DBuffer.h:29
_x3d_data_
Definition:
X3DBuffer.h:17
_x3d_data_::numPoints
int numPoints
Definition:
X3DBuffer.h:18
AllocateX3DBuffer
int AllocateX3DBuffer()
Definition:
X3DBuffer.c:25