FreeWRL/FreeX3D  3.0.0
BrowserGlobals.java
1 package vrml.external;
2 import vrml.external.field.*;
3 import vrml.external.FreeWRLEAI.*;
4 public class BrowserGlobals
5 {
6 
7 
8 // Events. EVno is the "highest +1" registered event number...
9 // EVarray corresponds to the events returned by FreeWRL to our
10 // type, EVtype is the type as registered.
11 public static double TickTime = 0.0;
12 public static int EVno = 0;
13 public static int EVarray [] = new int[256];
14 public static int EVtype [] = new int[256];
15 public static Object EVObject[] = new Object[256];
16 public static EventOutObserver EVObserver[] = new EventOutObserver[256];
17 
18 // The FreeWRL browser sends us changes to variables if/when they
19 // are updated. We tell the FreeWRL viewer what variables to look at
20 // by giving it a register listener command. The EAIinThread thread
21 // will send responses to the getVRMLReply procedure (below), or, if
22 // it receives an event, will send the result to the RL_Async thread...
23 
24 public static EAIAsyncThread RL_Async;
25 
26 // Query Number as sent to the FreeWRL Browser.
27 public static int queryno = 1;
28 
29 
30 // Sending to FreeWRL needs to synchronize on an object;
31 static Object FreeWRLToken = new Object();
32 
33 
34 
35 }
36