Btw, javier i cannot load your package to check what you did: This package depends on the following classes: NBXLibConstants You must resolve these dependencies before you will be able to load these definitions: NBGLXContextDriver supportsCurrentPlatform createContext: On 10 February 2012 19:34, Igor Stasenko <siguctua@gmail.com> wrote:
On 10 February 2012 19:19, Lawson English <lenglish5@cox.net> wrote:
Is that code even ready for consumption?
I was told that until there is a new ConfigurationOfNBOpenGL ready, to not load the new packages.
you could try :)
but this is what i working on now (slowly integrating the parts of Javier's code, because not everything which he did i like ;)
L.
On 2/10/12 10:12 AM, Javier Pimás wrote:
I'm trying to create an OpenGL context on linux but glxChooseVisual fails. Maybe there's someone there experienced with this that can help.
The code I'm trying is:
display := NBXLibDisplay open. window := display defaultRootWindow. visualInfo := NBXLibVisualInfo fromPointer: (gl chooseVisual: display screen: display defaultScreen attributes: {GLX_RGBA. GLX_DEPTH_SIZE. 24. GLX_DOUBLEBUFFER. 0} asWordArray). ...
but chooseVisual returns a null pointer. I even tried putting an array with only 0 on attributes but didn't work either (and these attributes should be supported).
Any idea of what could be wrong? The code is available to test in squeaksource, you need nativeboost+NBXLib to try
Cheers, Javier
-- Lic. Javier Pimás Ciudad de Buenos Aires
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.