예제 #1
0
 public override bool CanDrawInCGLContext(
     OpenGL.CGLContext glContext,
     OpenGL.CGLPixelFormat pixelFormat,
     double timeInterval,
     ref CVTimeStamp timeStamp)
 {
     return(_version != _dirtyVersion);
 }
예제 #2
0
 public override void DrawInCGLContext(OpenGL.CGLContext glContext, OpenGL.CGLPixelFormat pixelFormat, double timeInterval, ref CVTimeStamp timeStamp)
 {
     _version = _dirtyVersion;
     _draw();
     base.DrawInCGLContext(glContext, pixelFormat, timeInterval, ref timeStamp);
 }