|
RB.DrawPixelBuffer
Method - Static
public static void DrawPixelBuffer(Color32 [] pixels, Vector2i pixelsSize, Vector2i pos)
|
public static void DrawPixelBuffer(Color32 [] pixels, Vector2i pixelsSize, Vector2i pos, int flags = 0)
|
public static void DrawPixelBuffer(Color32 [] pixels, Vector2i pixelsSize, Vector2i pos, Vector2i pivot, float rotation)
|
public static void DrawPixelBuffer(Color32 [] pixels, Vector2i pixelsSize, Vector2i pos, Vector2i pivot, float rotation, int flags = 0)
|
public static void DrawPixelBuffer(Color32 [] pixels, Vector2i pixelsSize, Rect2i destRect)
|
public static void DrawPixelBuffer(Color32 [] pixels, Vector2i pixelsSize, Rect2i destRect, int flags = 0)
|
public static void DrawPixelBuffer(Color32 [] pixels, Vector2i pixelsSize, Rect2i destRect, Vector2i pivot, float rotation)
|
public static void DrawPixelBuffer(Color32 [] pixels, Vector2i pixelsSize, Rect2i destRect, Vector2i pivot, float rotation, int flags = 0)
|
Parameters
Returns
Nothing.
Description
Draw a pixel array with the given pixelsSize dimensions to the display at the given pos. You may also provide destination rectangle, pivot point and rotation.
If the same pixel buffer is used with no changes between calls to DrawPixelBuffer then the flag RB.PIXEL_BUFFER_UNCHANGED should be specified. This flag tells RetroBlit not to re-upload the buffer to the GPU, which improves performance.
Example
See Docs
Features - Pixel Buffers
|