FreeWRL/FreeX3D  3.0.0
world_script.h
1 /*
2 
3 
4 Local include for world_script directory.
5 
6 */
7 
8 /****************************************************************************
9  This file is part of the FreeWRL/FreeX3D Distribution.
10 
11  Copyright 2009 CRC Canada. (http://www.crc.gc.ca)
12 
13  FreeWRL/FreeX3D is free software: you can redistribute it and/or modify
14  it under the terms of the GNU Lesser Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  FreeWRL/FreeX3D is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  GNU General Public License for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with FreeWRL/FreeX3D. If not, see <http://www.gnu.org/licenses/>.
25 ****************************************************************************/
26 
27 
28 #ifndef __FREEWRL_WORLD_SCRIPT_LOCAL_H__
29 #define __FREEWRL_WORLD_SCRIPT_LOCAL_H__
30 
31 
32 void findFieldInOFFSETS(int nodeType , const int field, int *coffset, int *ctype, int *ckind);
33 void getJSMultiNumType (JSContext *cx, struct Multi_Vec3f *tn, int eletype);
34 void getMFStringtype (JSContext *cx, jsval *from, struct Multi_String *to);
35 void getMFNodetype (char *strp, struct Multi_Node *tn, struct X3D_Node *parent, int ar);
36 void SetMemory (int type, void *destptr, void *srcptr, int len);
37 void getEAI_ONE_MFStringtype (struct Multi_String *from, struct Multi_String *to, int len);
38 void getEAI_MFStringtype (struct Multi_String *from, struct Multi_String *to);
39 int ScanValtoBuffer(int *quant, int type, char *buf, void *memptr, int bufsz);
40 int findIndexInFIELDNAMES(int index, const char** arr, size_t arrCnt);
41 
42 
43 #endif /* __FREEWRL_WORLD_SCRIPT_LOCAL_H__ */