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.
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.
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.
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 87:55:03 |
Calls: | 6,658 |
Files: | 12,203 |
Messages: | 5,333,954 |