public void Load(Map map) { IntPtr camPtr = BrowserInterop.vtsDrawsCamera(map.Handle); Util.CheckError(); camera = (CameraBase)Marshal.PtrToStructure(camPtr, typeof(CameraBase)); Load(ref opaque, BrowserInterop.vtsDrawsOpaque(map.Handle)); Load(ref transparent, BrowserInterop.vtsDrawsTransparent(map.Handle)); Load(ref geodata, BrowserInterop.vtsDrawsGeodata(map.Handle)); Load(ref infographics, BrowserInterop.vtsDrawsInfographics(map.Handle)); }
public void Load(Map map, Camera cam) { IntPtr camPtr = BrowserInterop.vtsDrawsCamera(cam.Handle); Util.CheckInterop(); camera = (CameraBase)Marshal.PtrToStructure(camPtr, typeof(CameraBase)); celestial.Load(map); IntPtr group = IntPtr.Zero; uint cnt = 0; BrowserInterop.vtsDrawsOpaqueGroup(cam.Handle, ref group, ref cnt); LoadSurfaces(ref opaque, group, cnt); BrowserInterop.vtsDrawsTransparentGroup(cam.Handle, ref group, ref cnt); LoadSurfaces(ref transparent, group, cnt); BrowserInterop.vtsDrawsCollidersGroup(cam.Handle, ref group, ref cnt); LoadColliders(ref colliders, group, cnt); }