2009-04-26 13:21:16 UTC
I am trying to use wxErlang for graphics in a 2d game framework I am building.
My first problem is that when I call 'wxGLCanvas:new' it doesn't return. I've tried different parameters, using different wx Frames/Windows/Panels as it's parent, and I cannot seem to get this to work. The openGL samples also suffer from the same problem.
Next I switched to using the wxClientDC and wxBufferedDC for drawing instead. Works fine, except after about 1 to 3 minutes the pen colour changes to black and will not change to any other colour. It does continues to draw, just always black. I have tried explicitely setting the pen and brush to white on the line before drawing (incase it was being lost/not set/overridden/etc), makes no difference.
I am running Windows Server 2003, Erlang OTP R13A and the bundled wx 0.9.8.
I have no idea as to how to fix or workaround these problems, so any help would be most grateful.