Beispiel #1
0
 protected override void RenderClientContent(DrawBoard d, UpdateArea updateArea)
 {
     //****
     //because our demo may run the 'manual GL code',
     //(out of state-control of the shader share resource/ current program/ render tree/
     //***
     _painter.DetachCurrentShader();
     _demo.Draw(_painter);
 }
 public override void CustomDrawToThisCanvas(DrawBoard canvas, Rectangle updateArea)
 {
     //****
     //because our demo may run the 'manual GL code',
     //(out of state-control of the shader share resource/ current program/ render tree/
     //***
     _painter.DetachCurrentShader();
     _demo.Draw(_painter);
 }