Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Sep 17, 2024
1 parent 23f3e06 commit 40e7071
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ The Canvas base classes
~WgpuCanvasInterface
~WgpuCanvasBase
~WgpuAutoGui
~WgpuOffscreenCanvasBase


For each supported GUI toolkit there is a module that implements a ``WgpuCanvas`` class,
Expand Down
6 changes: 6 additions & 0 deletions wgpu/gui/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ def get_context(self, kind="webgpu"):
return self._canvas_context

def present_image(self, image, **kwargs):
"""Consume the final rendered image.
This is called when using the "image" method, see ``get_surface_info()``.
Canvases that don't support offscreen rendering don't need to implement
this method.
"""
raise NotImplementedError()


Expand Down

0 comments on commit 40e7071

Please sign in to comment.