Hi.
I just bought DarkGDK.NET and I'm stumbling from one beginner problem to the next ... I hope it's ok to ask for some advice
Running this code i just see a black fullscreen.
using System.Drawing;
using DarkGDK;
using DarkGDK.Basic2D;
namespace Zefix
{
class Halleluja
{
public static void Main(string[] args)
{
Engine.InitializeGDK();
Display.SetDisplayMode(640, 480, 32, false);
Core.SyncOn();
Core.SyncRate(0);
Display.WindowToFront();
Drawing.Ink(Color.White, Color.Black);
int hans = 0;
while (Engine.LoopGDK)
{
// Drawing.ClearBackground(Color.Black);
Drawing.ClearBackground(Color.Black);
Drawing.Box(100, hans, 300, 300);
Drawing.Circle(hans, 0, 100);
if (hans++ > 300) hans = 0;
Core.Sync();
}
}
}
}
Changing only the DisplayMode to
Display.SetDisplayMode(640, 480, 32,true);
I see just a black window.
Changing only the DisplayMode to
Display.SetDisplayMode(640, 480, 32);
Everything works as supposed.
Why ?
Another question:
I write this code within an "Empty Project". Running this code it appears the Doublebuffered Window and an Console window. How can I avoid this ?
Danke you in advance ...
realHans
PS: I look like this: