World: r3wp
[rogle] REBOL OpenGL/GLut Extension
older | first |
Maxim 20-Aug-2009 [35x3] | anyways... screenshot in a few minutes :-: |
trying to add texture just for the fun of it :-) | |
The first REBOL natively Generated OpenGL hardware accelerated graphics. :-D http://www.pointillistic.com/open-REBOL/moa/steel/R3-OGL.png | |
Henrik 20-Aug-2009 [38x2] | wohoo! :-) |
what does the REBOL source look like? | |
ICarii 20-Aug-2009 [40] | very nice maxim! :) |
Maxim 20-Aug-2009 [41x4:last] | Open GL gfx source is mostly on the C side for now because I'm still playing around with the extension and I can't interact with GLut or OGL until the extension API is expanded a little bit. |
rebol [ title: "test roggle" ] secure [extension allow] r: import %rogle.dll rogl-init [ ] rogl-draw-cube rogl-window ask "..." quit | |
At this point, providing the full capabilities of OpenGL to REBOL seems trivial, once the image! improvements are added to Extensions API. Some form of callbacks would also allow us to use a different window manager than VID (which would make it faster, since we wouldn't need to convert to rebol bitmaps at each frame). | |
(note that the GLut window manager is already available on most OSes, so this makes it even simpler to port, once extensions are ported to other platforms. :-) | |
older | first |