FreeWRL / FreeX3D
4.3.0
jsNative.h
1
/*
2
3
4
CProto.h - this is the object representing a PROTO definition and being
5
capable of instantiating it.
6
7
We keep a vector of pointers to all that pointers which point to "inner
8
memory" and need therefore be updated when copying. Such pointers include
9
field-destinations and parts of ROUTEs. Those pointers are then simply
10
copied, their new positions put in the new vector, and afterwards are all
11
pointers there updated.
12
13
*/
14
15
/****************************************************************************
16
This file is part of the FreeWRL/FreeX3D Distribution.
17
18
Copyright 2009 CRC Canada. (http://www.crc.gc.ca)
19
20
FreeWRL/FreeX3D is free software: you can redistribute it and/or modify
21
it under the terms of the GNU Lesser Public License as published by
22
the Free Software Foundation, either version 3 of the License, or
23
(at your option) any later version.
24
25
FreeWRL/FreeX3D is distributed in the hope that it will be useful,
26
but WITHOUT ANY WARRANTY; without even the implied warranty of
27
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
GNU General Public License for more details.
29
30
You should have received a copy of the GNU General Public License
31
along with FreeWRL/FreeX3D. If not, see <http://www.gnu.org/licenses/>.
32
****************************************************************************/
33
34
35
#ifndef __FREEWRL_JS_NATIVE_H__
36
#define __FREEWRL_JS_NATIVE_H__
37
38
39
typedef
struct
_BrowserNative
{
40
/* int magic; does this really do anything ??? */
41
/* and, this really does nothing SV *sv_js; */
42
int
dummyEntry;
43
}
BrowserNative
;
44
45
typedef
struct
_AnyNative
{
46
int
type;
47
int
gc;
48
int
*valueChanged;
49
union
anyVrml
*v;
50
}
AnyNative
;
51
52
typedef
struct
_SFNodeNative
{
53
int
valueChanged;
54
struct
X3D_Node
*handle;
55
char
*X3DString;
56
int
fieldsExpanded;
57
}
SFNodeNative
;
58
59
typedef
struct
_SFRotationNative
{
60
int
valueChanged;
61
struct
SFRotation
v;
62
}
SFRotationNative
;
63
64
typedef
struct
_SFVec2fNative
{
65
int
valueChanged;
66
struct
SFVec2f
v;
67
}
SFVec2fNative
;
68
69
typedef
struct
_SFVec3fNative
{
70
int
valueChanged;
71
struct
SFColor
v;
72
}
SFVec3fNative
;
73
74
typedef
struct
_SFVec3dNative
{
75
int
valueChanged;
76
struct
SFVec3d
v;
77
}
SFVec3dNative
;
78
79
typedef
struct
_SFImageNative
{
80
int
valueChanged;
81
}
SFImageNative
;
82
83
typedef
struct
_SFColorNative
{
84
int
valueChanged;
85
struct
SFColor
v;
86
}
SFColorNative
;
87
88
typedef
struct
_SFColorRGBANative
{
89
int
valueChanged;
90
struct
SFColorRGBA
v;
91
}
SFColorRGBANative
;
92
93
typedef
struct
_SFVec4fNative
{
94
int
valueChanged;
95
struct
SFVec4f
v;
96
}
SFVec4fNative
;
97
98
typedef
struct
_SFVec4dNative
{
99
int
valueChanged;
100
struct
SFVec4d
v;
101
}
SFVec4dNative
;
102
103
/*
104
* Adds additional (touchable) property to instance of a native
105
* type.
106
*/
107
extern
JSBool
108
addGlobalECMANativeProperty(
void
*cx,
109
void
*glob,
110
char
*name);
111
112
extern
JSBool
113
addGlobalAssignProperty(
void
*cx,
114
void
*glob,
115
char
*name,
116
char
*str);
117
118
extern
JSBool
119
addSFNodeProperty(
void
*cx,
120
void
*glob,
121
char
*nodeName,
122
char
*name,
123
char
*str);
124
125
extern
void
*AnyNativeNew(
int
type,
union
anyVrml
* source,
int
*valueChanged);
126
extern
void
AnyNativeAssign(
void
*top,
void
*fromp);
127
128
extern
void
*
129
SFNodeNativeNew(
void
);
130
131
extern
JSBool
132
SFNodeNativeAssign(
void
*top,
void
*fromp);
133
134
extern
void
*
135
SFRotationNativeNew(
void
);
136
137
extern
void
138
SFRotationNativeAssign(
void
*top,
void
*fromp);
139
140
extern
void
141
SFRotationNativeSet(
void
*p,
struct
Uni_String
*sv);
142
143
extern
void
*
144
SFVec3fNativeNew(
void
);
145
146
extern
void
147
SFVec3fNativeAssign(
void
*top,
void
*fromp);
148
149
extern
void
150
SFVec3fNativeSet(
void
*p,
struct
Uni_String
*sv);
151
152
extern
void
*
153
SFVec2fNativeNew(
void
);
154
155
extern
void
156
SFVec2fNativeAssign(
void
*top,
void
*fromp);
157
158
extern
void
159
SFVec2fNativeSet(
void
*p,
struct
Uni_String
*sv);
160
161
extern
void
*
162
SFImageNativeNew(
void
);
163
164
extern
void
165
SFImageNativeAssign(
void
*top,
void
*fromp);
166
167
extern
void
168
SFImageNativeSet(
void
*p,
struct
Uni_String
*sv);
169
170
extern
void
*
171
SFColorNativeNew(
void
);
172
173
extern
void
174
SFColorNativeAssign(
void
*top,
void
*fromp);
175
176
extern
void
177
SFColorNativeSet(
void
*p,
struct
Uni_String
*sv);
178
179
void
* SFNodeNativeNew(
void
);
180
int
SFNodeNativeAssign(
void
*top,
void
*fromp);
181
int
SFNodeNativeEquals(
void
*top,
void
*fromp);
182
void
* SFColorRGBANativeNew(
void
);
183
void
SFColorRGBANativeAssign(
void
*top,
void
*fromp);
184
void
* SFColorNativeNew(
void
);
185
void
SFColorNativeAssign(
void
*top,
void
*fromp);
186
void
* SFImageNativeNew(
void
);
187
void
SFImageNativeAssign(
void
*top,
void
*fromp);
188
void
* SFRotationNativeNew(
void
);
189
void
SFRotationNativeAssign(
void
*top,
void
*fromp);
190
void
* SFVec2fNativeNew(
void
);
191
void
SFVec2fNativeAssign(
void
*top,
void
*fromp);
192
void
* SFVec3fNativeNew(
void
);
193
void
SFVec3fNativeAssign(
void
*top,
void
*fromp);
194
void
* SFVec3dNativeNew(
void
);
195
void
SFVec3dNativeAssign(
void
*top,
void
*fromp);
196
void
* SFVec4fNativeNew(
void
);
197
void
SFVec4fNativeAssign(
void
*top,
void
*fromp);
198
void
* SFVec4dNativeNew(
void
);
199
void
SFVec4dNativeAssign(
void
*top,
void
*fromp);
200
201
#endif
/* __FREEWRL_JS_NATIVE_H__ */
SFColorRGBA
Definition
Structs.h:2550
SFColor
Definition
Structs.h:2548
SFRotation
Definition
Structs.h:2538
SFVec2f
Definition
Structs.h:2556
SFVec3d
Definition
Structs.h:2560
SFVec4d
Definition
Structs.h:2576
SFVec4f
Definition
Structs.h:2574
Uni_String
Definition
Structs.h:51
X3D_Node
Definition
Structs.h:2589
_AnyNative
Definition
jsNative.h:45
_BrowserNative
Definition
jsNative.h:39
_SFColorNative
Definition
jsNative.h:83
_SFColorRGBANative
Definition
jsNative.h:88
_SFImageNative
Definition
jsNative.h:79
_SFNodeNative
Definition
jsNative.h:52
_SFRotationNative
Definition
jsNative.h:59
_SFVec2fNative
Definition
jsNative.h:64
_SFVec3dNative
Definition
jsNative.h:74
_SFVec3fNative
Definition
jsNative.h:69
_SFVec4dNative
Definition
jsNative.h:98
_SFVec4fNative
Definition
jsNative.h:93
anyVrml
Definition
CParseGeneral.h:56
src
lib
world_script
jsNative.h
Generated by
1.11.0