b2dLockImage

Downloads texture to CPU buffer (enables fast GetPixel/SetPixel, GPU->CPU copy, must unlock after). Takes imageHandle (image handle from b2dLoadImage, b2dCreateRenderTarget, etc, positive integer). Returns nothing.

2D Overlay

Parameters & Returns

Parameters

imageHandle Int

Returns

Void

Quick Summary

Downloads texture to CPU buffer (enables fast GetPixel/SetPixel, GPU->CPU copy, must unlock after). Takes imageHandle (image handle from b2dLoadImage, b2dCreateRenderTarget, etc, positive integer). Returns nothing.

Technical Exegesis...

Downloads texture to CPU buffer (enables fast GetPixel/SetPixel, GPU->CPU copy, must unlock after). Takes imageHandle (image handle from b2dLoadImage, b2dCreateRenderTarget, etc, positive integer). Returns nothing. Downloads texture from GPU (ReadTextureFromGPU helper copies texture to CPU with readback buffer), allocates CPU buffer (img.

Example

Example.bam
; No example implemented yet