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

Thread: Using Oxygen with TBGL

  1. #11
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    405

    Re: Using Oxygen with TBGL

    It looks like it is alive, that is a neat effect. Like it is breathing and blowing out Fire... A Torus Dragon.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  2. #12

    Re: Using Oxygen with TBGL


    A small refinement makes it possible to perform low level Opengl entirely within Oxygen compiled code, while maintaining operability with TBGL. Opengl must not be freed when Oxygen terminates - as would normally occur with the `terminate` command. If this happens a GPF will occur at the end of the program.

    To resolve this I've unbundled terminate into freelibs, freestrings and freestatics.
    So it is now possible to omit freelibs from the usual termination sequence.

    [code=thinbasic]
    sub finish() at #p0
    '
    'terminate ' STANDARD TERMINATION
    '
    'SPECIAL TERMINATE WHEN SHARING OPENGL WITH THINBASIC
    '
    'freelibs ' EXCLUDED
    freestrings
    freestatics
    end sub
    [/code]

    This means we can run lengthy Opengl procedures at full wack in O2H and still have access to all the goodies in TBGL.

    Charles


    PS: This is demonstrated in PSVA9 but looks essentially the same as the PSVA8 Bellows above.

  3. #13
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    405

    Re: Using Oxygen with TBGL

    This is really great to hear about Charles. Thanks.

    I like the cool looking comments too, very artistic!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  4. #14

    Re: Using Oxygen with TBGL


    Thanks Kent,

    I find the commented graffiti makes a HUGE difference in being able to navigate long listings, and also helps to conceptualise what the code is doing.


    #####
    # #
    # O = #
    # ! #
    # -- #
    #####
    ###

    Charles

Page 2 of 2 FirstFirst 12

Similar Threads

  1. my first try using TBGL and OXYGEN
    By D.J.Peters in forum Shout Box Area
    Replies: 9
    Last Post: 05-03-2010, 05:54

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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