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

RB.DisplaySize

Property  -  Static Read Only

Type

Vector2i

Description

The current display size in pixels. This is a read-only property, to change the display size us the RB.DisplayModeSet method. The initial display size is determined by a call into IRetroBlitGame.QueryHardware.

Example

void Render()
{
    // Draw a rectangle the size of the display
    RB.DrawRect(new Rect2i(00RB.DisplaySize.width, RB.DisplaySize.height), Color.green);
}

See Also

RB.DisplayModeSet
IRetroBlitGame.QueryHardware