Skip to content

GfxMode3DExists

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions
Blitz3D

GfxMode3DExists

GfxMode3DExists:Int32 width:Int32, height:Int32, depth:Int32
Parameter Mode Type Default Description
width In Int32 required Width in pixels.
height In Int32 required Height in pixels.
depth In Int32 required Color depth in bits.

Returns: True if a full screen mode of that size can be used.

Description

Asks whether a resolution is available for 3D, before opening it with Graphics3D. It lets a game offer only the sizes that work.

Examples

If GfxMode3DExists(1024, 768, 32) Then
	Graphics3D 1024, 768, 32, 1
Else
	Graphics3D 640, 480, 0, 2
EndIf
SetBuffer BackBuffer()
camera = CreateCamera()
RenderWorld
Flip
WaitKey

Related Commands

CountGfxModes3D, GfxDriver3D, GfxDriverCaps3D, GfxMode3D, GfxMode3DHeight 〔BlitzLLVM〕, GfxMode3DWidth 〔BlitzLLVM〕, Graphics3D, Windowed3D

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally