public void EngineStartup(AGSEngine engine) { this.engine = engine; }
public void EngineStartup(AGSEngine engine) { this.engine = engine; //register functions this.engine.RegisterScriptFunction("GetAlpha", (GetAlphaDel)this.GetAlpha); this.engine.RegisterScriptFunction("PutAlpha", (PutAlphaDel)this.PutAlpha); this.engine.RegisterScriptFunction("DrawAlpha", (DrawAlphaDel)this.DrawAlpha); this.engine.RegisterScriptFunction("Blur", (BlurDel)this.Blur); this.engine.RegisterScriptFunction("HighPass", (HighPassDel)this.HighPass); this.engine.RegisterScriptFunction("DrawAdd", (DrawAddDel)this.DrawAdd); this.engine.RegisterScriptFunction("DrawSprite", (DrawSpriteDel)this.DrawSprite); }
public void Unlock() { if (this.IsLocked && this.engine != null) { this.engine.ReleaseBitmapSurface(this.Handle); this.Initialize(); } this.CurrentLock = IntPtr.Zero; this.engine = null; }
public void EngineStartup(AGSEngine engine) { this.engine = engine; this.managedVector3Reader = new ManagedVector3Reader(this.managedVector3Interface, engine); engine.AddManagedObjectReader(ManagedVector3Interface.TypeName, this.managedVector3Reader); engine.RegisterScriptFunction("Vector3::Create^3", (CreateVector3Del)this.CreateVector3); engine.RegisterScriptFunction("Vector3::Add^1", (AddVector3Del)Vector3_Add); engine.RegisterScriptFunction("Vector3::Subtract^1", (SubVector3Del)SubtractPoint); engine.RegisterScriptFunction("Vector3::set_X", (Vector3SetDel)Vector3_set_X); engine.RegisterScriptFunction("Vector3::get_X", (Vector3GetDel)Vector3_get_X); engine.RegisterScriptFunction("Vector3::set_Y", (Vector3SetDel)Vector3_set_Y); engine.RegisterScriptFunction("Vector3::get_Y", (Vector3GetDel)Vector3_get_Y); engine.RegisterScriptFunction("Vector3::set_Z", (Vector3SetDel)Vector3_set_Z); engine.RegisterScriptFunction("Vector3::get_Z", (Vector3GetDel)Vector3_get_Z); }
public void EngineStartup(AGSEngine engine) { this.engine = engine; this.engine.RegisterScriptFunction("Test", (TestDel)this.Test); }
public void Lock(AGSEngine engine) { this.engine = engine; if (this.IsLocked) { this.Unlock(); } this.CurrentLock = engine.GetRawBitmapSurface(this.Handle); }
public static void AGS_EngineStartup(IntPtr lpEngine) { var engine = new AGSEngine(lpEngine); Plugin.EngineStartup(engine); }
public void EngineStartup(AGSEngine engine) { this.engine = engine; this.engine.RequestEventHook(EventType.PostScreenDraw); this.engine.RequestEventHook(EventType.FinalScreenDraw); }
public MyFontRenderer(AGSEngine engine) { this.engine = engine; }
public void EngineStartup(AGSEngine engine) { this.engine = engine; this.engine.RegisterScriptFunction("Test", (TestDel)(this.Test)); this.agsScriptFunctions = new AGSScriptFunctions(engine); }
public ManagedVector3Reader(ManagedVector3Interface managedVector3Interface, AGSEngine engine) { this.managedVector3Interface = managedVector3Interface; this.engine = engine; }