[BUG][FIX][VM] Unix B3D Acceleration

Joshua 'Schwa' Gargus schwa at cc.gatech.edu
Mon Jul 1 04:26:43 UTC 2002


This set of 3 patchfiles may be applied to Ian's 3.2-3devel tree in
order to get hardware accelerated 3d rendering to work.  The VM now
exports the following two functions: primitiveGetSTDisplay() and
primitiveGetSTWindow().  These are used by the B3DAcceleratorPlugin to
get Squeak's window and display for OpenGL initialization.

I'm not a unix development guru, so I was unable to create a single
patchfile that you can apply at the base of the tree.  You'll have to
change directory to platforms/unix/... in order to apply the patches.

Thanks Bert!

Joshua


On Sun, Jun 30, 2002 at 11:00:02PM +0200, Bert Freudenberg wrote:
> On Fri, 28 Jun 2002, Joshua 'Schwa' Gargus wrote:
> 
> > The problem is the failure of the line
> > 	p= interpreterProxy->ioLoadFunctionFrom("stDisplay", NULL);
> > in sqUnixOpenGL.c
> > 
> > One confusing thing is that stDisplay doesn't seem to be a function.
> > Is some initialization function supposed to stash stDisplay (the one
> > from sqXWindow.c) in a primitive table so that the accelerator plugin
> > can find it?  
> 
> Now if I could remember what I did back then ... I guess I just added
> stDisplay to the platform.exports file. Nowadays that file is named
> differently, though.
> 
> > Help!
> 
> Not much help, but maybe that points you in the right direction. In a real 
> distribution, the B3DAcceleratorPlugin should be made external, otherwise 
> the VM won't run if there are no GL libs.
> 
> -- Bert
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patches.tar.gz
Type: application/x-tar-gz
Size: 572 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020701/e3f661da/patches.tar.bin


More information about the Squeak-dev mailing list