Euphoria CGI, SVGA, and Pixel perfect collision dectection
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> Jun 01, 1998
- 806 views
Buddy Hyllberg writes: > 1. is there a way to redirect STDIN & STDOUT globally? I'm not sure what you mean by globally, but the files STDIN and STDOUT relate to the predefined Euphoria file numbers 0 and 1, respectively. Irv's cgi files use temporary input and output files declared by the HTTP program ( the filenames are passed via environment variables). I've got some CGI programs around here somewhere... one took a euphoria program off my hard drive, applied syntax coloring in html and returned it to the browser. ----------------------- Charn writes regarding svga.e: > ...and there are other things so I don't think i missed anything obvious > When I run it I get an error that says bytes_per_line has no value in > Pete's svga.e I'm inclined to think that my program is at fault. Anyway, this > is part > of ex.err: bytes_per_line gets its value when you call svga_mode with the vesa mode number to set. Make sure to use svga_mode and not graphics_mode... I looked again at the your code, and you are peeking data from memory into a sequence... which my redefined pixel then pokes back into video memory. It would be much faster to use a mem_copy instead. Michael Bolin has added SVGA block move routines to his ememcopy.e package. His routines look exactly like what you are trying to do. --------------------- And to Michael Bolin regarding pixel perfect collision testing: I say go for it! If you need any assistance, I would be glad to help. I already have an idea for how to code it, but not much time... Later, _______ ______ _______ ______ [ _ \[ _ ][ _ _ ][ _ ] [/| [_] |[/| [_\][/ | | \][/| [_\] | ___/ | _] | | | _] [\| [/] [\| [_/] [\| |/] [\| [_/] [_____] [______] [_____] [______] xseal at harborside.com