Oh.. on a second try i passed this step. The error 'improper store' is because a mistake in given line of code: ogl drawString: frames printString, ' frames: ', (framesPerSec truncateTo: 0.1), ' fps' at: 0@font height@0 font: font color: Color black. should be: ogl drawString: frames printString, ' frames: ', (framesPerSec truncateTo: 0.1) asString , ' fps' at: 0@font height@0 font: font color: Color black. but then there some other errors in #uploadFont: method. i just commented out a #flipvertically send and two lines with 'Smalltalk isLittleEndian' ... since its not important.. after that last fix it was able to run w/o errors, showing a swirling red rectangle. Here's a hacked uploadfont method. uploadFont: aFont | glFontID form | glFontID := glx glGenLists: 256. 0 to: 255 do:[:i| form := aFont characterFormAt: (i asCharacter). " form flipVertically. Smalltalk isLittleEndian ifTrue: [self swapBytesOf: form bits]." glx glNewList: glFontID+i with: GLCompile. glx glBitmap: form width with: form height with: 0 with: 0 with: form width with: 0 with: form bits. glx glEndList. " form flipVertically. Smalltalk isLittleEndian ifTrue: [self swapBytesOf: form bits]." ]. ^glFontID (btw, its a complete waste of CPU cycles to flip the form. It can be flipped by a simple glScalef(1.0, -1.0) of a texture coordinate matrix, or use a different texture coordinates :) So, a texture's up will become down and vise versa :) On 16 April 2010 04:12, Igor Stasenko <siguctua@gmail.com> wrote:
On 16 April 2010 03:56, Lawson English <lenglish5@cox.net> wrote:
That was a comment by the original programmer. I'm hopelessly confused at this point... :-/
I tried to run this stuff, but it ended up with 'unable to create a renderer' Strange, though VM having a required plugin B3DAcceleratorPlugin. It refuses to create GL context :( So i can't tell what really happening.. What system you are running on?
-- Best regards, Igor Stasenko AKA sig.
-- Best regards, Igor Stasenko AKA sig.