New Library! Viewport.e
- Posted by Hawke <mdeland at NWINFO.NET> Sep 21, 1998
- 461 views
--------------CE15F4F9B6F1569DF7941F75 A while back, someone had asked if several BASIC (ack!) functions could be 'ported' to Euphoria, or were available in Euphoria. ABS and OUT and WINDOW and sumfin else. During those discussions, ABS got a large feedback, OUT was understood to be handled by ports.e (i think) and WINDOW was *ahem* determined to be out of the running. After doing a bit of homework, and remembering how nice WINDOW could actually be, I've developed a library that allows you to specify *your own* coordinate system that will remap to the actual CRT. It doesn't automatically convert coordinates for you whenever you call a pixel drawing/placing routine as WINDOW does. It is only a step away from that, however. It will allow you to specify your coordinate system and the viewport on the screen where you wish the coordinates to actually be placed, and then you simply pass your values desiring to be drawn thru my function just before calling the drawing function you will be using. The only way I can think of/know of that would give "true" WINDOW functionality would be if Euphoria's main drawing routines were to be altered inside ex.exe. Hopefully, this library will prove useful. Take care all, and care of as well. --Hawke' without further ado, here is the library... (attached as viewport.zip, containing: viewport.e, viewport.ex and viewport.txt) --------------CE15F4F9B6F1569DF7941F75