Share

wxErlang

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.
The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

wx graphics drawing issues

You are viewing a single message from this topic. View all messages.

  1. 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.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.