Logo ROOT  
Reference Guide
X3DDefs.h
Go to the documentation of this file.
1/* @(#)root/g3d:$Id$ */
2
3/*************************************************************************
4 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_X3DDefs
12#define ROOT_X3DDefs
13
14
15/* Conditional compile for int math */
16
17#ifdef USE_INTS
18
19#define SHIFT 12
20#define TRIG_ADJ 4096.0
21typedef int number;
22
23#else
24
25#define TRIG_ADJ 1.0
26typedef float number;
27
28#endif
29
30typedef struct POINT point;
31typedef struct SEGMENT segment;
32typedef struct POLYGON polygon;
33typedef struct COLOR_ Color;
34
35
36typedef struct {
37 short x, y;
38} _XPoint;
39
40
56
63
76
77struct COLOR_{
78 long value;
81 int red, green, blue;
82};
83
84#endif
struct COLOR_ Color
Definition X3DDefs.h:33
struct POLYGON polygon
Definition X3DDefs.h:32
struct SEGMENT segment
Definition X3DDefs.h:31
float number
Definition X3DDefs.h:26
struct POINT point
Definition X3DDefs.h:30
long value
Definition X3DDefs.h:78
int green
Definition X3DDefs.h:81
long stereoColor
Definition X3DDefs.h:79
int stipple
Definition X3DDefs.h:80
int red
Definition X3DDefs.h:81
int blue
Definition X3DDefs.h:81
float RX
Definition X3DDefs.h:45
segment ** segs
Definition X3DDefs.h:50
polygon ** polys
Definition X3DDefs.h:52
short sBX
Definition X3DDefs.h:47
int visibility
Definition X3DDefs.h:43
int numSegs
Definition X3DDefs.h:49
float dist
Definition X3DDefs.h:48
int ClipFlags
Definition X3DDefs.h:42
number z
Definition X3DDefs.h:44
_XPoint R
Definition X3DDefs.h:46
point * redNext
Definition X3DDefs.h:53
float Y
Definition X3DDefs.h:45
number x
Definition X3DDefs.h:44
int numPolys
Definition X3DDefs.h:51
number y
Definition X3DDefs.h:44
point * blueNext
Definition X3DDefs.h:54
float BX
Definition X3DDefs.h:45
int visibility
Definition X3DDefs.h:69
float dist
Definition X3DDefs.h:68
segment * n
Definition X3DDefs.h:65
segment ** segs
Definition X3DDefs.h:74
int numSegs
Definition X3DDefs.h:73
segment * m
Definition X3DDefs.h:65
float minDist
Definition X3DDefs.h:66
int numPoints
Definition X3DDefs.h:71
point ** points
Definition X3DDefs.h:72
float maxDist
Definition X3DDefs.h:66
polygon * next
Definition X3DDefs.h:67
Color * color
Definition X3DDefs.h:70
Color * color
Definition X3DDefs.h:59
polygon ** polys
Definition X3DDefs.h:61
int numPolys
Definition X3DDefs.h:60
point * P
Definition X3DDefs.h:58
point * Q
Definition X3DDefs.h:58
short x
Definition X3DDefs.h:37
short y
Definition X3DDefs.h:37