• OBNC XYplane

    From doug719125@gmail.com@21:1/5 to All on Thu Nov 23 16:07:36 2017
    OBNC 0.9.1

    I was trying the XYplane module, and getting no output and no errors.

    The problem is that OBNC is using double buffering in SDL 1.2 and a call to SDL_Flip(screen) is needed.

    The call to Key does this, but seems non intuitive since the purpose of Key is to see if a keyboard key is pressed. After calling Key, the output appeared.

    OBNC needs a new procedure in XYplane, such as Show or Flip to display the buffer.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From doug719125@gmail.com@21:1/5 to doug7...@gmail.com on Thu Nov 23 19:40:09 2017
    On Thursday, 23 November 2017 17:07:37 UTC-7, doug7...@gmail.com wrote:
    OBNC 0.9.1

    I was trying the XYplane module, and getting no output and no errors.

    The problem is that OBNC is using double buffering in SDL 1.2 and a call to SDL_Flip(screen) is needed.

    The call to Key does this, but seems non intuitive since the purpose of Key is to see if a keyboard key is pressed. After calling Key, the output appeared.

    OBNC needs a new procedure in XYplane, such as Show or Flip to display the buffer.

    As a minimum you need to add something like the following to the XYplane documentation (taken from the Oxford Oberon Compiler site):

    The procedure Key allows simple keyboard interaction. It also handles the events generated by X when the graphics window is uncovered, so as to fill
    in the newly-exposed region; this means that a graphics application should
    call Key in each iteration of its main loop.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From miasap@21:1/5 to doug719125@gmail.com on Fri Nov 24 10:36:18 2017
    On 2017-11-24 01:07, doug719125@gmail.com wrote:
    OBNC 0.9.1

    I was trying the XYplane module, and getting no output and no errors.

    The problem is that OBNC is using double buffering in SDL 1.2 and a call to SDL_Flip(screen) is needed.

    Double buffering is used to enable smooth animations.

    The call to Key does this, but seems non intuitive since the purpose of Key is to see if a keyboard key is pressed.

    I agree. However, if I'm not mistaken, this is how Key is usually
    implemented.

    OBNC needs a new procedure in XYplane, such as Show or Flip to display the buffer.

    All basic library modules strictly follows the Oakwood guidelines. If I
    change the API the compatibility will be lost.


    -- Karl

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From miasap@21:1/5 to doug719125@gmail.com on Fri Nov 24 10:40:29 2017
    On 2017-11-24 04:40, doug719125@gmail.com wrote:
    As a minimum you need to add something like the following to the XYplane documentation (taken from the Oxford Oberon Compiler site):

    The procedure Key allows simple keyboard interaction. It also handles the events generated by X when the graphics window is uncovered, so as to fill
    in the newly-exposed region; this means that a graphics application should call Key in each iteration of its main loop.

    Thanks for the suggestion. I will improve the documentation of XYplane.


    -- Karl

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From miasap@21:1/5 to miasap on Fri Dec 8 12:53:18 2017
    On 2017-11-24 10:40, miasap wrote:
    On 2017-11-24 04:40, doug719125@gmail.com wrote:
    As a minimum you need to add something like the following to the
    XYplane documentation (taken from the Oxford Oberon Compiler site):

    The procedure Key allows simple keyboard interaction. It also handles the
    events generated by X when the graphics window is uncovered, so as to
    fill
    in the newly-exposed region; this means that a graphics application
    should
    call Key in each iteration of its main loop.

    Thanks for the suggestion. I will improve the documentation of XYplane.

    The documentation of XYplane has been updated. OBNC 0.10.1 also supports
    full screen mode.

    http://miasap.se/obnc/obncdoc/obnc/XYplane.def.html


    Regards,
    Karl

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)