Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser version of Tilengine
#9
(01-15-2023, 04:09 AM)megamarc Wrote: Hi!

Glad to know you have it working :-)

As you can see, the single main difference is that the main loop doesn't exist isnide main() function anymore, but is a delegate function set up by the new API call TLN_SetMainTask(). That's because how the browser calls javascript code. Being single-threaded, it means you can't call a function that doesn't return control to the javascript engine, a delegate callback must be used. This new mechanism is also implemented inside the Tilengine window, so the updated samples will also run when compiled to native C applications. The rest of the API is the same.

This is good to know! I also have an idea : You maybe can implement the samples on the website, so the user can interact with them while visiting the website
Reply


Messages In This Thread
Browser version of Tilengine - by System64 - 12-22-2022, 10:01 AM
RE: Browser version of Tilengine - by megamarc - 12-31-2022, 08:28 PM
RE: Browser version of Tilengine - by System64 - 12-31-2022, 11:23 PM
RE: Browser version of Tilengine - by megamarc - 01-11-2023, 12:52 AM
RE: Browser version of Tilengine - by System64 - 01-11-2023, 01:46 AM
RE: Browser version of Tilengine - by megamarc - 01-14-2023, 04:54 PM
RE: Browser version of Tilengine - by System64 - 01-15-2023, 02:36 AM
RE: Browser version of Tilengine - by megamarc - 01-15-2023, 04:09 AM
RE: Browser version of Tilengine - by System64 - 01-15-2023, 06:09 AM
RE: Browser version of Tilengine - by megamarc - 01-16-2023, 03:59 AM
RE: Browser version of Tilengine - by System64 - 01-16-2023, 10:20 PM
RE: Browser version of Tilengine - by megamarc - 01-19-2023, 04:30 AM
RE: Browser version of Tilengine - by System64 - 11-13-2023, 05:27 AM
RE: Browser version of Tilengine - by megamarc - 12-03-2023, 06:26 PM
RE: Browser version of Tilengine - by System64 - 12-04-2023, 12:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)