BRL.GLGraphics: Functions Modinfo Source  

OpenGL Graphics

Functions

Function GLAdjustTexSize( width Var,height Var )
DescriptionHelper function to calculate nearest valid texture size.
InformationThis functions rounds width and height up to the nearest valid texture size.

Function GLDrawText( text$,x,y )
DescriptionHelper function to output some simple 8x16 font text.
InformationDraws text relative to top-left of current viewport.

This function is intended for debugging purposes only - performance is unlikely to be stellar.

Function GLGraphics:TGraphics( width,height,depth=0,hertz=60,flags=GRAPHICS_BACKBUFFER|GRAPHICS_DEPTHBUFFER )
ReturnsAn OpenGL graphics object.
DescriptionCreate OpenGL graphics.
InformationThis is a convenience function that allows you to easily create an OpenGL graphics context.

Function GLGraphicsDriver:TGLGraphicsDriver()
ReturnsAn OpenGL graphics driver.
DescriptionGet OpenGL graphics driver.
InformationThe returned driver can be used with SetGraphicsDriver.

Function GLTexFromPixmap( pixmap:TPixmap,mipmap=True )
ReturnsInteger GL Texture name.
DescriptionHelper function to create a texture from a pixmap.
Informationpixmap is resized to a valid texture size before conversion.

Module Information

Version1.11
AuthorMark Sibly, Simon Armstrong
LicenseBlitz Shared Source Code
CopyrightBlitz Research Ltd
ModserverBRL
History1.11 Release
HistoryTrapped Win32 WM_CLOSE
History1.10 Release
HistoryAdded extra check for use of flip sync extensions under Linux
History1.09 Release
HistoryFixed MacOS shared context
History1.08 Release
HistoryMinor maintanance
History1.07 Release
HistoryFixed Linux _calchertz
History1.06 Release
HistoryChanged MacOS DisplayCapture to CaptureAllDisplays
History1.05 Release
HistoryAdded SetAcceptsMouseMovedEvents to MacOS windowed mode
History1.04 Release
HistoryFixed (removed for now) MacOS atexit issue
History1.03 Release
HistoryLinux fullscreen fixed
History1.02 Release
HistoryAdded AppTitle support
History1.01 Release
HistoryAdded graphics flags handling