How to draw constantly on a NSOpenGLView

Discussion in 'Mac Programming' started by Bunkum, Jun 4, 2010.

  1. Bunkum macrumors newbie

    Joined:
    Jun 4, 2010
    #1
    I'm having trouble with NSOpenGLView, can you make drawRect get called constantly? Or is there another function i should use for painting the image to the screen?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Use an NSTimer to set the view as needing redraw at the required frequency.
     

Share This Page