Re: [Pharo-users] OpenGL minimum working example?

2018-11-12 Thread Ronie Salgado
Hi Hernan, I just added two new examples, UFFIOpenGLOffscreenSamples >> #triangle and UFFIOpenGLOffscreenSamples >> #quad (using your vertices). I tested it on Linux and on OS X. triangle " self new triangle " | context gl fb colorProgram vertexBuffer | context := UFFIOpenGLCo

Re: [Pharo-users] OpenGL minimum working example?

2018-11-12 Thread Ben Coman
On Tue, 13 Nov 2018 at 03:37, Hernán Morales Durand < hernan.mora...@gmail.com> wrote: > 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

Re: [Pharo-users] OpenGL minimum working example?

2018-11-12 Thread Hernán Morales Durand
Hello Tomo, Thank you, very interesting project! BTW to load Jun4Pharo with UFFI OpenGL the expression is: Gofer new smalltalkhubUser: 'tomooda' project: 'Jun4Pharo'; configurationOf: #Jun; load. (Smalltalk at: #ConfigurationOfJun) project development load: #('Core'). There are only

Re: [Pharo-users] OpenGL minimum working example?

2018-11-12 Thread Tomohiro Oda
Hello Hernan, I tested the code only on Mac. --- tomo 2018/11/13(Tue) 8:27 Tomohiro Oda wrote: > > Hello Hernan, > > I have partially working code at > http://smalltalkhub.com/#!/~tomooda/Jun4Pharo > > My code still have two problems that > * depending on resolution, projection matrix can't be p

Re: [Pharo-users] OpenGL minimum working example?

2018-11-12 Thread Tomohiro Oda
Hello Hernan, I have partially working code at http://smalltalkhub.com/#!/~tomooda/Jun4Pharo My code still have two problems that * depending on resolution, projection matrix can't be properly set, and * it freezes pharo when switching to fullscreen Best Regards, --- tomo

[Pharo-users] OpenGL minimum working example?

2018-11-12 Thread Hernán Morales Durand
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