BRL.GLGraphics: | Functions | Source |
GLGraphicsDriver | Get OpenGL graphics driver |
GLGraphics | Create OpenGL graphics |
GLAdjustTexSize | Helper function to calculate nearest valid texture size |
GLTexFromPixmap | Helper function to create a texture from a pixmap |
GLDrawRect | Helper function to output a simple rectangle |
GLDrawText | Helper function to output some simple 8x16 font text |
GLDrawPixmap | Helper function to draw a pixmap to a gl context |
GLShareContexts | Enable OpenGL context sharing |
Function GLGraphicsDriver:TGLGraphicsDriver() | |
Returns | An OpenGL graphics driver |
Description | Get OpenGL graphics driver |
Information | The returned driver can be used with SetGraphicsDriver |
Function GLGraphics:TGraphics( width,height,depth=0,hertz=60,flags=GRAPHICS_BACKBUFFER|GRAPHICS_DEPTHBUFFER ) | |
Returns | An OpenGL graphics object |
Description | Create OpenGL graphics |
Information | This is a convenience function that allows you to easily create an OpenGL graphics context. |
Function GLAdjustTexSize( width Var,height Var ) | |
Description | Helper function to calculate nearest valid texture size |
Information | This functions rounds width and height up to the nearest valid texture size |
Function GLTexFromPixmap( pixmap:TPixmap,mipmap=True ) | |
Returns | Integer GL Texture name |
Description | Helper function to create a texture from a pixmap |
Information | pixmap is resized to a valid texture size before conversion. |
Function GLDrawRect( x,y,width,height ) | |
Description | Helper function to output a simple rectangle |
Information | Draws a rectangle relative to top-left of current viewport. |
Function GLDrawText( text$,x,y ) | |
Description | Helper function to output some simple 8x16 font text |
Information |
Draws text relative to top-left of current viewport. The font used is an internal fixed point 8x16 font. This function is intended for debugging purposes only - performance is unlikely to be stellar. |
Function GLDrawPixmap( pixmap:TPixmap,x,y ) | |
Description | Helper function to draw a pixmap to a gl context |
Information |
Draws the pixmap relative to top-left of current viewport. This function is intended for debugging purposes only - performance is unlikely to be stellar. |
Function GLShareContexts() | |
Description | Enable OpenGL context sharing |
Information |
Calling GLShareContexts will cause all opengl graphics contexts created to
shared displaylists, textures, shaders etc.
This should be called before any opengl contexts are created. |