AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.PIXEL_BUFFER_UNCHANGED

Variable  -  Const

Type

const int

Description

Indicates that the pixel buffer contents and dimensions used in RB.DrawPixelBuffer are unchanged since the last call to that method. When this flag is set RB.DrawPixelBuffer is optimized by not uploading pixel data to the GPU again.

Example

void Render()
{
    // Do something with the pixel buffer
    updatePixelBuffer();

    // Draw the pixel buffer
    RB.DrawPixelBuffer(pixelBuffer, new Vector2i(100200), new Vector2i(00));

    // Draw the pixel buffer again at a new location with the pixel data unchanged
    RB.DrawPixelBuffer(pixelBuffer, new Vector2i(100200), new Vector2i(0200), RB.PIXEL_BUFFER_UNCHANGED);
}

See Also

RB.DrawPixelBuffer