Skip to content

Commit

Permalink
Document reder target result lifetime
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Maškarinec <[email protected]>
  • Loading branch information
marekmaskarinec committed Mar 6, 2024
1 parent e127c22 commit 94c5424
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion umka/image.um
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ fn (rt: ^RenderTarget) end*(wp: th.Vf2) {

fn umth_image_render_target_to_image(ret: ^Image, rt: RenderTarget)
//~~fn RenderTarget.toImage
// Returns the image of the render target.
// Returns the image of the render target. The resulting image has the same
// lifetime as the base RenderTarget. If you need to use it past the lifetime
// of the RenderTarget, use the copy method.
// Do not call `setfilter` on the resulting image.
fn (rt: ^RenderTarget) toImage*(): Image {
//~~
Expand Down

0 comments on commit 94c5424

Please sign in to comment.