Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test Sample shows blanks screen
#1
I'm running Tilengine 2.9.0 on Windows 10 Pro x64.  I compiled the following code listed on the Github repo's README.MD file and am getting a blank screen when I run the app from the samples folder.

Code:
#include "Tilengine.h"

void main(void) {
   TLN_Tilemap foreground;

   TLN_Init (400, 240, 1, 0, 0);
   TLN_SetLoadPath ("assets/sonic");
   foreground = TLN_LoadTilemap ("assets/sonic/Sonic_md_fg1.tmx", NULL);
   TLN_SetLayerTilemap (0, foreground);

   TLN_CreateWindow (NULL, 0);
   while (TLN_ProcessWindow()) {
       TLN_DrawFrame (0);
   }

   TLN_DeleteTilemap (foreground);
   TLN_Deinit ();
}
Reply


Messages In This Thread
Test Sample shows blanks screen - by Kr3m77 - 03-19-2021, 09:17 PM
RE: Test Sample shows blanks screen - by megamarc - 03-19-2021, 10:26 PM
RE: Test Sample shows blanks screen - by Kr3m77 - 03-20-2021, 12:31 AM
RE: Test Sample shows blanks screen - by megamarc - 03-20-2021, 03:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)