BlitzMax

BlitzMax

  • Downloads
  • Docs
  • API
  • Resources
  • About

›SDLVideo

BlitzMax API

  • Introduction

BRL

    Audio

    • Introduction
    • TChannel
    • TSound

    AudioSample

    • Introduction
    • TAudioSample
    • TAudioSampleLoader

    Bank

    • Introduction
    • TBank

    BankStream

    • Introduction
    • TBankStream

    Base64

    • Introduction
    • TBase64

    Blitz

    • Introduction
    • TArrayBoundsException
    • TBlitzException
    • TNullFunctionException
    • TNullMethodException
    • TNullObjectException
    • TOutOfDataException
    • TRuntimeException
  • BRL.BMPLoader
  • Clipboard

    • Introduction
    • TClipboard
    • TClipboardOpts
    • TWin32ClipboardOpts
    • TX11ClipboardOpts
  • BRL.D3D7Max2D
  • BRL.D3D9Max2D
  • BRL.DirectSoundAudio
  • BRL.EndianStream
  • Event

    • Introduction
    • TEvent
  • BRL.EventQueue
  • BRL.FileSystem
  • BRL.FreeAudioAudio
  • BRL.GLGraphics
  • BRL.GLMax2D
  • BRL.GNet
  • BRL.Graphics
  • BRL.Hook
  • IO

    • Introduction
    • MaxIO
  • BRL.JPGLoader
  • BRL.KeyCodes
  • LinkedList

    • Introduction
    • TList
    • TListEnum
    • TLink

    Map

    • Introduction
    • TMap
    • TIntMap
    • TIntKey
    • TPtrMap
    • TPtrKey
    • TStringMap
  • BRL.Math
  • Matrix

    • Introduction
    • SMat2D
    • SMat2F
    • SMat2I
    • SMat3D
    • SMat3F
    • SMat3I
    • SMat4D
    • SMat4F
    • SMat4I

    Max2D

    • Introduction
    • TImage

    MaxLua

    • Introduction
    • TLuaClass
    • TLuaObject
  • BRL.OGGLoader
  • BRL.OpenALAudio
  • ObjectList

    • Introduction
    • TObjectList
    • TObjectListEnumerator
    • TObjectListReverseEnumerator

    Pixmap

    • Introduction
    • TPixmap
    • TPixmapLoader
  • BRL.PNGLoader
  • BRL.PolledInput
  • Quaternion

    • Introduction
    • SQuatD
    • SQuatF
    • SQuatI
  • BRL.RamStream
  • Random

    • Introduction
    • TRandom

    Reflection

    • Introduction
    • TTypeId
    • TMember
    • TConstant
    • TField
    • TGlobal
    • TFunction
    • TMethod
  • BRL.Retro
  • BRL.Socket
  • BRL.SocketStream
  • BRL.StandardIO
  • Stream

    • Introduction
    • TCStream
    • TIO
    • TStream
    • TStreamException
    • TStreamFactory
    • TStreamReadException
    • TStreamWrapper
    • TStreamWriteException

    StringBuilder

    • Introduction
    • TStringBuilder
    • TSplitBuffer
  • BRL.System
  • BRL.SystemDefault
  • BRL.TextStream
  • BRL.TGALoader
  • ThreadPool

    • Introduction
    • TRunnable
    • TThreadPoolExecutor

    Threads

    • Introduction
    • TThread
    • TThreadData
    • TMutex
    • TSemaphore
    • TCondVar

    Timer

    • Introduction
    • TChrono
  • BRL.TimerDefault
  • Vector

    • Introduction
    • SVec2D
    • SVec2F
    • SVec2I
    • SVec3D
    • SVec3F
    • SVec3I
    • SVec4D
    • SVec4F
    • SVec4I

    Volumes

    • Introduction
    • TVolume
  • BRL.WAVLoader

Text

    CSV

    • Introduction
    • TCsvParser
    • TCsvHeader
    • TCsvRow
    • TCsvOptions
    • SCsvColumn

    Format

    • Introduction
    • TFormatter

    Ini

    • Introduction
    • TIni
    • TIniProperty
    • TIniSection

    JConv

    • Introduction
    • TJConv
    • TJConvBuilder
    • TJConvSerializer

    Json

    • Introduction
    • TJSON
    • TJSONObject
    • TJSONString
    • TJSONInteger
    • TJSONReal
    • TJSONBool
    • TJSONArray
    • TJSONNull
    • TJSONError
    • TJSONNumber

    Regex

    • Introduction
    • TRegEx
    • TRegExMatch
    • TRegExOptions
    • TRegExException

    TOML

    • Introduction
    • ETomlNodeType
    • TToml
    • ITomlNode
    • STomlDate
    • STomlDateTime
    • STomlTime
    • TTomlArray
    • TTomlInteger
    • TTomlString
    • TTomlTable
    • TTomlBoolean

    Xml

    • Introduction
    • TxmlDoc
    • TxmlNode
    • TxmlAttribute

MaxGUI

  • MaxGUI.MaxGUI
  • MaxGUI.Drivers
  • MaxGUI.Localization
  • MaxGUI.ProxyGadgets
  • MaxGUI.CocoaMaxGUI
  • MaxGUI.Win32MaxGUIEx

PUB

  • Pub.FreeJoy
  • Pub.FreeProcess
  • Pub.Glad
  • Pub.Glew
  • Joystick

    • Introduction
    • TJoystickDriver
  • Pub.Lua
  • Pub.OpenAL
  • Pub.OpenGLES
  • Pub.xmmintrin
  • Pub.ZLib

Crypto

    Digest

    • Introduction
    • TMessageDigest
    • TDigestRegister
    • TNoSuchAlgorithmException

    Cipher

    • Introduction
    • TCipher
    • TCipherMode
    • Crypto.AESCipher
    • Crypto.AnubisCipher
    • Crypto.BlowfishCipher
    • Crypto.CamelliaCipher
    • Crypto.Cast5Cipher
    • Crypto.DESCipher
    • Crypto.IdeaCipher
    • Crypto.KasumiCipher
    • Crypto.KhazadCipher
    • Crypto.KSeedCipher
    • Crypto.NoekeonCipher
    • Crypto.SerpentCipher
    • Crypto.SkipjackCipher
    • Crypto.TwofishCipher
    • Crypto.XTeaCipher

    CBCMode

    • Introduction
    • TCBCCipherMode

    CFBMode

    • Introduction
    • TCFBCipherMode

    CTRMode

    • Introduction
    • TCTRCipherMode

    ECBMode

    • Introduction
    • TECBCipherMode

    F8Mode

    • Introduction
    • TF8CipherMode

    LRWMode

    • Introduction
    • TLRWCipherMode

    OFBMode

    • Introduction
    • TOFBCipherMode

    XTSMode

    • Introduction
    • TXTSCipherMode

    Blake2BDigest

    • Introduction
    • TBlake2B_512
    • TBlake2B_384
    • TBlake2B_256
    • TBlake2B_160

    CRC32

    • Introduction
    • TCRC32

    MD5Digest

    • Introduction
    • TMD5

    Ripemd320Digest

    • Introduction
    • TRipemd320

    Ripemd356Digest

    • Introduction
    • TRipemd256

    Ripemd160Digest

    • Introduction
    • TRipemd160

    Ripemd128Digest

    • Introduction
    • TRipemd128

    SHA1Digest

    • Introduction
    • TSHA1

    SHA256Digest

    • Introduction
    • TSHA256

    SHA512Digest

    • Introduction
    • TSHA512

    SHA3Digest

    • Introduction
    • TSHA3_512
    • TSHA3_384
    • TSHA3_256
    • TSHA3_224

    TigerDigest

    • Introduction
    • TTiger

    WhirlpoolDigest

    • Introduction
    • TWhirlpool

    Crypto

    • Introduction
    • TCryptoRandom
    • TCryptoSecretBox
    • TCryptoHash
    • TCryptoSign
    • TCryptoKeyExchange
    • TCryptoKey
    • TCryptoHashKey
    • TCryptoSecretBoxKey
    • TCryptoSignature
    • TCryptoExchangeKeyPair
    • TCryptoSessionKeyPair
    • TCryptoNPacket
    • TCryptoKK1Packet
    • TCryptoKK2Packet
    • TCryptoXX1Packet
    • TCryptoXX2Packet
    • TCryptoXX3Packet
    • TCryptoExchangeState
    • TCryptoPWHashMasterKey
    • TCryptoPWHashStoredKey
    • TCryptoPasswordHash

SDL

    SDL

    • Introduction
    • TSDLStream

    SDLSystem

    • Introduction
    • TSDLMultiGesture

    SDLVideo

    • Introduction
    • TSDLDisplay
    • TSDLDisplayMode
    • TSDLGLContext
    • TSDLWindow

    SDLRender

    • Introduction
    • TSDLRenderer
    • TSDLTexture

    SDLTimer

    • Introduction
    • TSDLTimer

    SDLHaptic

    • Introduction
    • TSDLHaptic
    • TSDLHapticCondition
    • TSDLHapticConstant
    • TSDLHapticCustom
    • TSDLHapticDirection
    • TSDLHapticEffect
    • TSDLHapticLeftRight
    • TSDLHapticPeriodic
    • TSDLHapticRamp

    SDLSensor

    • Introduction
    • TSDLSensor
  • SDL.SDLFreeAudio
  • SDL.GLSDLMax2D
  • SDL.GL2SDLMax2D
  • SDL.D3D9SDLMax2D
  • SDLVirtualJoystick

    • Introduction
    • TVirtualJoystick

Steam

    SteamSDK

    • Introduction
    • TSteamClient
    • TSteamUtils
    • TSteamUserStats
    • TSteamFriends
    • TSteamUGC
    • ISteamFriendsListener
    • ISteamUGCListener
    • ISteamUserStatsListener
    • ISteamUtilsListener
    • EItemPreviewType
    • EPersonaChange
    • EPersonaState
    • ERemoteStoragePublishedFileVisibility
    • EUGCMatchingUGCType
    • EUGCQuery
    • EUserRestriction
    • EUserUGCList
    • EWorkshopFileType
Edit

SDL.SDLVideo

Types

TypeDescription
TSDLWindowAn SDL Window.
TSDLGLContextAn Open GL context.
TSDLDisplayRepresents an indexed video display.
TSDLDisplayModeThe description of a display mode.

Functions

Function SDLGetVideoDrivers:String[]()

Returns the list of built-in video drivers.

The video drivers are presented in the order in which they are normally checked during initialization.


Function SDLVideoInit:Int(driver:String)

Initializes the video subsystem, optionally specifying a video driver.

Initializes the video subsystem; setting up a connection to the window manager, etc, and determines the available display modes and pixel formats, but does not initialize a window or graphics mode.


Function SDLVideoQuit()

Shuts down the video subsystem.

Closes all windows, and restores the original video mode.


Function SDLGetCurrentVideoDriver:String()

Gets the name of the currently initialized video driver.

Returns

The name of the current video driver or NULL if no driver has been initialized.


Function SDLGetNumVideoDisplays:Int()

Gets the number of available video displays.

Returns

A number >= 1 or a negative error code on failure. Call SDLGetError() for more information.


Function SDLGetGrabbedWindow:TSDLWindow()

Gets the window that currently has an input grab enabled.

Returns

The window if input is grabbed, and Null otherwise.


Function SDLIsScreenSaverEnabled:Int()

Returns whether the screensaver is currently enabled (Default off).

The screensaver is disabled by default since SDL 2.0.2. Before SDL 2.0.2 the screensaver was enabled by default.


Function SDLEnableScreenSaver()

Allows the screen to be blanked by a screensaver.


Function SDLDisableScreenSaver()

Prevents the screen from being blanked by a screensaver.

If you disable the screensaver, it is automatically re-enabled when SDL quits.


Consts

Const SDL_WINDOW_FULLSCREEN:UInt = $00000001

fullscreen window


Const SDL_WINDOW_OPENGL:UInt = $00000002

window usable with OpenGL context


Const SDL_WINDOW_SHOWN:UInt = $00000004

window is visible


Const SDL_WINDOW_HIDDEN:UInt = $00000008

window is not visible


Const SDL_WINDOW_BORDERLESS:UInt = $00000010

no window decoration


Const SDL_WINDOW_RESIZABLE:UInt = $00000020

window can be resized


Const SDL_WINDOW_MINIMIZED:UInt = $00000040

window is minimized


Const SDL_WINDOW_MAXIMIZED:UInt = $00000080

window is maximized


Const SDL_WINDOW_INPUT_GRABBED:UInt = $00000100

window has grabbed input focus


Const SDL_WINDOW_INPUT_FOCUS:UInt = $00000200

window has input focus


Const SDL_WINDOW_MOUSE_FOCUS:UInt = $00000400

window has mouse focus


Const SDL_WINDOW_FULLSCREEN_DESKTOP:UInt = SDL_WINDOW_FULLSCREEN | $00001000

full screen desktop


Const SDL_WINDOW_FOREIGN:UInt = $00000800

window not created by SDL


Const SDL_WINDOW_ALLOW_HIGHDPI:UInt = $00002000

window should be created in high-DPI mode if supported


Const SDL_WINDOW_MOUSE_CAPTURE:UInt = $00004000

window has mouse captured (unrelated to INPUT_GRABBED)


Const SDL_WINDOW_ALWAYS_ON_TOP:UInt = $00008000

window should always be above others


Const SDL_WINDOW_SKIP_TASKBAR:UInt = $00010000

window should not be added to the taskbar


Const SDL_WINDOW_UTILITY:UInt = $00020000

window should be treated as a utility window


Const SDL_WINDOW_TOOLTIP:UInt = $00040000

window should be treated as a tooltip


Const SDL_WINDOW_POPUP_MENU:UInt = $00080000

window should be treated as a popup menu


Const SDL_WINDOW_VULKAN:UInt = $10000000

window usable for Vulkan surface


Const SDL_GL_RED_SIZE:Int = 0

the minimum number of bits for the red channel of the color buffer; defaults to 3


Const SDL_GL_GREEN_SIZE:Int = 1

the minimum number of bits for the green channel of the color buffer; defaults to 3


Const SDL_GL_BLUE_SIZE:Int = 2

the minimum number of bits for the blue channel of the color buffer; defaults to 2


Const SDL_GL_ALPHA_SIZE:Int = 3

the minimum number of bits for the alpha channel of the color buffer; defaults to 0


Const SDL_GL_BUFFER_SIZE:Int = 4

the minimum number of bits for frame buffer size; defaults to 0


Const SDL_GL_DOUBLEBUFFER:Int = 5

whether the output is single or double buffered; defaults to double buffering on


Const SDL_GL_DEPTH_SIZE:Int = 6

the minimum number of bits in the depth buffer; defaults to 16


Const SDL_GL_STENCIL_SIZE:Int = 7

the minimum number of bits in the stencil buffer; defaults to 0


Const SDL_GL_ACCUM_RED_SIZE:Int = 8

the minimum number of bits for the red channel of the accumulation buffer; defaults to 0


Const SDL_GL_ACCUM_GREEN_SIZE:Int = 9

the minimum number of bits for the green channel of the accumulation buffer; defaults to 0


Const SDL_GL_ACCUM_BLUE_SIZE:Int = 10

the minimum number of bits for the blue channel of the accumulation buffer; defaults to 0


Const SDL_GL_ACCUM_ALPHA_SIZE:Int = 11

the minimum number of bits for the alpha channel of the accumulation buffer; defaults to 0


Const SDL_GL_STEREO:Int = 12

whether the output is stereo 3D; defaults to off


Const SDL_GL_MULTISAMPLEBUFFERS:Int = 13

the number of buffers used for multisample anti-aliasing; defaults to 0; see Remarks for details


Const SDL_GL_MULTISAMPLESAMPLES:Int = 14

the number of samples used around the current pixel used for multisample anti-aliasing; defaults to 0; see Remarks for details


Const SDL_GL_ACCELERATED_VISUAL:Int = 15

set to 1 to require hardware acceleration, set to 0 to force software rendering; defaults to allow either


Const SDL_GL_RETAINED_BACKING:Int = 16

not used (deprecated)


Const SDL_GL_CONTEXT_MAJOR_VERSION:Int = 17

OpenGL context major version; see Remarks for details


Const SDL_GL_CONTEXT_MINOR_VERSION:Int = 18

OpenGL context minor version; see Remarks for details


Const SDL_GL_CONTEXT_FLAGS:Int = 19

some combination of 0 or more of elements of the SDL_GLcontextFlag enumeration; defaults to 0


Const SDL_GL_CONTEXT_PROFILE_MASK:Int = 20

type of GL context (Core, Compatibility, ES). See SDL_GLprofile; default value depends on platform


Const SDL_GL_SHARE_WITH_CURRENT_CONTEXT:Int = 21

OpenGL context sharing; defaults to 0


Const SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:Int = 22

requests sRGB capable visual; defaults to 0


Const SDL_GL_CONTEXT_RELEASE_BEHAVIOR:Int = 23

sets context the release behavior; defaults to 1


← TSDLMultiGestureTSDLDisplay →
  • Types
  • Functions
    • Function SDLGetVideoDrivers:String[]()
    • Function SDLVideoInit:Int(driver:String)
    • Function SDLVideoQuit()
    • Function SDLGetCurrentVideoDriver:String()
    • Function SDLGetNumVideoDisplays:Int()
    • Function SDLGetGrabbedWindow:TSDLWindow()
    • Function SDLIsScreenSaverEnabled:Int()
    • Function SDLEnableScreenSaver()
    • Function SDLDisableScreenSaver()
  • Consts
    • Const SDL_WINDOW_FULLSCREEN:UInt = $00000001
    • Const SDL_WINDOW_OPENGL:UInt = $00000002
    • Const SDL_WINDOW_SHOWN:UInt = $00000004
    • Const SDL_WINDOW_HIDDEN:UInt = $00000008
    • Const SDL_WINDOW_BORDERLESS:UInt = $00000010
    • Const SDL_WINDOW_RESIZABLE:UInt = $00000020
    • Const SDL_WINDOW_MINIMIZED:UInt = $00000040
    • Const SDL_WINDOW_MAXIMIZED:UInt = $00000080
    • Const SDL_WINDOW_INPUT_GRABBED:UInt = $00000100
    • Const SDL_WINDOW_INPUT_FOCUS:UInt = $00000200
    • Const SDL_WINDOW_MOUSE_FOCUS:UInt = $00000400
    • Const SDL_WINDOW_FULLSCREEN_DESKTOP:UInt = SDL_WINDOW_FULLSCREEN | $00001000
    • Const SDL_WINDOW_FOREIGN:UInt = $00000800
    • Const SDL_WINDOW_ALLOW_HIGHDPI:UInt = $00002000
    • Const SDL_WINDOW_MOUSE_CAPTURE:UInt = $00004000
    • Const SDL_WINDOW_ALWAYS_ON_TOP:UInt = $00008000
    • Const SDL_WINDOW_SKIP_TASKBAR:UInt = $00010000
    • Const SDL_WINDOW_UTILITY:UInt = $00020000
    • Const SDL_WINDOW_TOOLTIP:UInt = $00040000
    • Const SDL_WINDOW_POPUP_MENU:UInt = $00080000
    • Const SDL_WINDOW_VULKAN:UInt = $10000000
    • Const SDL_GL_RED_SIZE:Int = 0
    • Const SDL_GL_GREEN_SIZE:Int = 1
    • Const SDL_GL_BLUE_SIZE:Int = 2
    • Const SDL_GL_ALPHA_SIZE:Int = 3
    • Const SDL_GL_BUFFER_SIZE:Int = 4
    • Const SDL_GL_DOUBLEBUFFER:Int = 5
    • Const SDL_GL_DEPTH_SIZE:Int = 6
    • Const SDL_GL_STENCIL_SIZE:Int = 7
    • Const SDL_GL_ACCUM_RED_SIZE:Int = 8
    • Const SDL_GL_ACCUM_GREEN_SIZE:Int = 9
    • Const SDL_GL_ACCUM_BLUE_SIZE:Int = 10
    • Const SDL_GL_ACCUM_ALPHA_SIZE:Int = 11
    • Const SDL_GL_STEREO:Int = 12
    • Const SDL_GL_MULTISAMPLEBUFFERS:Int = 13
    • Const SDL_GL_MULTISAMPLESAMPLES:Int = 14
    • Const SDL_GL_ACCELERATED_VISUAL:Int = 15
    • Const SDL_GL_RETAINED_BACKING:Int = 16
    • Const SDL_GL_CONTEXT_MAJOR_VERSION:Int = 17
    • Const SDL_GL_CONTEXT_MINOR_VERSION:Int = 18
    • Const SDL_GL_CONTEXT_FLAGS:Int = 19
    • Const SDL_GL_CONTEXT_PROFILE_MASK:Int = 20
    • Const SDL_GL_SHARE_WITH_CURRENT_CONTEXT:Int = 21
    • Const SDL_GL_FRAMEBUFFER_SRGB_CAPABLE:Int = 22
    • Const SDL_GL_CONTEXT_RELEASE_BEHAVIOR:Int = 23
BlitzMax
Docs
Getting StartedDownloadsAbout
Community
ResourcesSyntaxBomb Forums
More
GitHubStarChat on Discord
Copyright © 2023 Bruce A Henderson