protected static bool DrawPreDelegate(GraphicsContext ctx, SceneGraphContext ctxScene, SceneObject sceneObject, object data) { // Update object before applying state sceneObject.UpdateThis(ctx, ctxScene); // Push and merge the graphics state ctxScene.GraphicsStateStack.Push(sceneObject.ObjectState); return(true); }
private static bool UpdateDelegate(GraphicsContext ctx, SceneGraphContext ctxScene, SceneObject sceneObject, object data) { sceneObject.UpdateThis(ctx, ctxScene); return(true); }