Package apple.metalkit.protocol
Interface MTKViewDelegate
-
public interface MTKViewDelegateAPI-Since: 9.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddrawInMTKView(@NotNull MTKView view)drawInMTKView: Called on the delegate when it is asked to render into the view Called on the delegate when it is asked to render into the viewvoidmtkViewDrawableSizeWillChange(@NotNull MTKView view, CGSize size)mtkView:drawableSizeWillChange: Called whenever the drawableSize of the view will change Delegate can recompute view and projection matricies or regenerate any buffers to be compatible with the new view size or resolution
-
-
-
Method Detail
-
drawInMTKView
void drawInMTKView(@NotNull @NotNull MTKView view)drawInMTKView: Called on the delegate when it is asked to render into the view Called on the delegate when it is asked to render into the view
-
mtkViewDrawableSizeWillChange
void mtkViewDrawableSizeWillChange(@NotNull @NotNull MTKView view, CGSize size)mtkView:drawableSizeWillChange: Called whenever the drawableSize of the view will change Delegate can recompute view and projection matricies or regenerate any buffers to be compatible with the new view size or resolution- Parameters:
view- MTKView which called this methodsize- New drawable size in pixels
-
-