r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[rogle] REBOL OpenGL/GLut Extension

Maxim
20-Aug-2009
[37]
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.  :-)