Esempio n. 1
0
                public string WriteString(EarthView.World.Graphic.RenderSystemCapabilities caps, string name)
                {
                    IntPtr __ptr = EarthView_World_Graphic_CRenderSystemCapabilitiesSerializer_writeString_EVString_CRenderSystemCapabilities_EVString(this.NativeObject, object.Equals(caps, null) ? IntPtr.Zero : caps.NativeObject, name);

                    string ret = Marshal.PtrToStringAnsi(__ptr);

                    ClassFactory.FreeString(ref __ptr);
                    return(ret);
                }
Esempio n. 2
0
                public EarthView.World.Graphic.RenderSystemCapabilities LoadParsedCapabilities(string name)
                {
                    IntPtr __ptr = EarthView_World_Graphic_CRenderSystemCapabilitiesManager_loadParsedCapabilities_CRenderSystemCapabilities_EVString(this.NativeObject, name);

                    if (__ptr == IntPtr.Zero)
                    {
                        return(null);
                    }
                    EarthView.World.Graphic.RenderSystemCapabilities csObj = new EarthView.World.Graphic.RenderSystemCapabilities(CreatedWhenConstruct.CWC_NotToCreate);
                    csObj.BindNativeObject(__ptr, "CRenderSystemCapabilities");
                    csObj.Delegate = true;
                    IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName());

                    if (csObjClassFactory != null)
                    {
                        csObj.Delegate = true;
                        csObj          = csObjClassFactory.Create() as EarthView.World.Graphic.RenderSystemCapabilities;
                        csObj.BindNativeObject(__ptr, "CRenderSystemCapabilities");
                        csObj.Delegate = true;
                    }
                    return(csObj);
                }
Esempio n. 3
0
 public void _addRenderSystemCapabilities(string name, EarthView.World.Graphic.RenderSystemCapabilities caps)
 {
     EarthView_World_Graphic_CRenderSystemCapabilitiesManager__addRenderSystemCapabilities_void_EVString_CRenderSystemCapabilities(this.NativeObject, name, object.Equals(caps, null) ? IntPtr.Zero : caps.NativeObject);
 }
Esempio n. 4
0
 /// <summary>
 /// 向数据流中写入一个RenderSystemCapabilities对象
 /// </summary>
 /// <param name="caps"></param>
 /// <param name="name"></param>
 /// <param name="filename"></param>
 /// <returns></returns>
 public void WriteScript(EarthView.World.Graphic.RenderSystemCapabilities caps, string name, string filename)
 {
     EarthView_World_Graphic_CRenderSystemCapabilitiesSerializer_writeScript_void_CRenderSystemCapabilities_EVString_EVString(this.NativeObject, object.Equals(caps, null) ? IntPtr.Zero : caps.NativeObject, name, filename);
 }