Hi.
I tried to get an OpenGL MWE from
https://github.com/ronsaldo/uffi-opengl in both Windows 8.1 and MacOS
without luck. What I tried so far is to render a simple figure in a
new window, adding this method to UFFIOpenGLOffscreenSamples:
>>sample2
" self new sample2
"
| context gl fb |
context := UFFIOpenGLContext new.
gl := context gl.
fb := context offscreenBufferExtent: 300@300.
context asCurrentDo: [
fb activate.
gl
" loadIdentity;"
clear: GL_COLOR_BUFFER_BIT;
begin: GL_QUADS;
color3f_red: 1.0 green: 0.0 blue: 0.0;
vertex3f_x: 0.0 y: 0.0 z: 0.0;
vertex3f_x: 0.5 y: 0.0 z: 0.0;
vertex3f_x: 0.5 y: 0.5 z: 0.0;
vertex3f_x: 0.0 y: 0.5 z: 0.0;
end;
flush ].
fb asForm asMorph openInWindow.
However the result is that VM hangs in both platforms.
Any advice what I'm missing?
Cheers,
Hernán