Okay, I checked all commands and ran a test. I can't see any abnormalities.
This is the code I used.
static void Main()
{
Core.CreateWindow(AppInfo.WIN_TITLE, 1280, 1024, false);
if (!Core.InitAGK())
return;
Agk.SetVirtualResolution(1280, 1024);
Agk.CreateObjectBox(1, 10, 5, 10);
Agk.CreateObjectCapsule(2, 5, 10, 2);
Agk.CreateObjectCone(3, 15, 5, 12);
Agk.CreateObjectCylinder(4, 5, 10, 12);
Agk.SetObjectPosition(1, 0, 0, 30);
Agk.SetObjectPosition(2, 0, 0, -30);
Agk.SetObjectPosition(3, 30, 0, 0);
Agk.SetObjectPosition(4, -30, 0, 0);
Agk.SetCameraPosition(1, 0, 0, 0);
Agk.SetCameraLookAt(1, 0, 0, 30, 0);
var halfW = Agk.GetVirtualWidth() / 2.0f;
var halfH = Agk.GetVirtualHeight() / 2.0f;
Agk.SetRawMousePosition(halfW, halfH);
while (Core.LoopAGK())
{
// camera rotation
var mousemoveX = Agk.GetPointerX() - halfW; // = Agk.getvirtualwidth() / 2.0f; // mouse move on screen left and right
var mousemoveY = Agk.GetPointerY() - halfH; // same // mouse move on screen up and down
// BUG? X = Y, Y = X
if (mousemoveY != 0.0f || mousemoveX != 0.0f)
{
Agk.RotateCameraLocalY(1, mousemoveX);
Agk.RotateCameraLocalX(1, mousemoveY);
Agk.SetCameraRotation(1, Agk.GetCameraAngleX(1), Agk.GetCameraAngleY(1), 0.0f); // always upright
}
Agk.Print(string.Format("screen half: {0}, {1}", halfW, halfH));
Agk.Print(string.Format("pointer move: {0}, {1}", mousemoveX, mousemoveY));
Agk.Print(string.Format("pointer pos: {0}, {1}", Agk.GetPointerX(), Agk.GetPointerY()));
Agk.SetRawMousePosition(halfW, halfH);
Agk.Sync();
}
Core.CleanUp();
}
Quote: "Also, when we try a 64bit compiling, it claim something like there is no library for 64bit so it will not complie a 64 bit version."
You need to use the 'AgkSharp-Template(x64)' template.
Quote: "Also, the winform never terminate when the X button is pressed nor is right click and close in the task bar.
Perhaps it took too long to close?
Is there command to know if the app is shutting down?"
Are you using my latest standard templates? I am not aware of such a bug. What does your main loop look like?
Share your knowledge. It\'s a way to achieve immortality.
(Tenzin Gyatso)