{nvm}
this doesn't work:
public static void Main(string[] args)
{
AgateSetup
AS = new AgateSetup
();
AS.Initialize(true, false, true);
if (AS.WasCanceled)
return;
DisplayWindow MainWindow = DisplayWindow.CreateWindowed ("Test", 800, 600);
FrameBuffer _preRenderd
= new FrameBuffer
(200,
35);
FontSurface _fontSurface = FontSurface.AgateSans10;
Display.RenderTarget = _preRenderd;
Display.BeginFrame();
Display.Clear(Color.Blue);
_fontSurface.Color = Color.Red;
_fontSurface.DrawText(3,3 , "HELLO WORLD");
Display.EndFrame();
Display.FlushDrawBuffer();
Display.RenderTarget = MainWindow.FrameBuffer;
while (MainWindow.IsClosed == false)
{
if(Display.RenderTarget != MainWindow.FrameBuffer)
Display.RenderTarget = MainWindow.FrameBuffer;
Display.BeginFrame();
Display.Clear(Color.Black);
_preRenderd.RenderTarget.Draw(35,35);
Display.EndFrame();
Core.KeepAlive();
}
}
All i get is the blue box on the black background.
Well i added the flushbuffer
Well i added the flushbuffer as a test to see if it would do anything, which it didn't.
OS: Windows 7 64 bit
Vid: 9500 GT
After removing the opentk libs from the folder, it worked, so i guess i was using OTK :p
Hmm it works for me on my
Hmm it works for me on my desktop. What OS are you running on? Are you using AgateOTK or AgateSDX? What video card do you have?
The only thing I would say is wrong with your code is that you shouldn't be calling Display.FlushDrawBuffer at all (and especially not outside a BeginFrame..EndFrame block).