Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Maxim: Use of SDK for wrapping the Irrlicht

  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Milan - Italy
    Blog Entries
    Rep Power
    Hi Maxim.

    More info about creating thinBasic modules and their logic can be found in the great TBJ number 2 (thinBasic Journal created by Petr Schreiber):
    In that number I wrote an initial article describing what is a module, what is the main logic, how to use SDK functions to create and parse your own keywords.
    I created a SDK for PowerBasic and others (especially Charles Pegge) created the interface inclide file for FreeBasic. There is also an interface for C but to be honest it was not much developed because its author (Roberto Bianchi) in not anymore involved in thinBasic project.
    You can find all the material plus some examples inside your thinbasic installation directory under \thinBasic\SDK\SDK.ZIP

    Just recently (starting from thinBasic, currently the last relese) I've introduced the concept of module classes.
    Module classes are binary classes defined inside compiled modules and exposed to thinBasic interpreted language thanks to new SDK functions I've developed: thinBasic_Class_Add(...) and thinBasic_Class_AddMethod(...)
    Module classes take advance from the fantastic PowerBasic language and its ability to create classes (in EXE or DLL) being used anywhere just knowing a PTR to the internal instantiated binary class.
    Unfortunately this is not a compatible way and PB classes cannot be confused with (for example) C++ classes. They are not the same.
    As we said, module classes is just very recent and I cannot say now which will be the final direction. I'm mostrly committed with PowerBasic but keeping thinBasic concept very general so in theory a thinBasic module classes can be also a pointer to an UDT (and not a real class) and than the module must know how to threat that PTR.

    So at the moment you can create a standard thinBasic module using PowerBasic or FreeBasic.
    The biggest example of thinBasic module created with FreeBasic is Oxygen from Charles Pegge. Oxygen is a just in time source code to machine code converted to in memory execution of source code.
    Source code of Oxygen can be found here:
    Maybe you can find ideas in there.

    Eros | |
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  2. #12
    Hi Petr and Eros.
    Thanks for your help. Oxygen is a very interesting project and I will try learning this.

  3. #13
    Quote Originally Posted by maxim View Post
    Hi Petr and Eros.
    Thanks for your help. Oxygen is a very interesting project and I will try learning this.
    You can find the OxygenBasic open source project site here.
    ScriptBasic Project Manager
    Project Site

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Wrapping DLL functions bug
    By Bagamut in forum Xors3D Graphics Engine
    Replies: 7
    Last Post: 09-01-2011, 22:37
  2. a 3D web browers using Irrlicht
    By ErosOlmi in forum Software discussion
    Replies: 0
    Last Post: 05-05-2007, 18:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts