--- id: sdl.gl2sdlmax2d title: SDL.GL2SDLMax2D sidebar_label: SDL.GL2SDLMax2D --- The OpenGL Max2D module provides an OpenGL 2+ driver for Max2D with shader support. Legacy fixed functionality is included for testing purposes if GLMAX2D_USE_LEGACY = True. ## Functions ### `Function GL2Max2DDriver:TGL2Max2DDriver()` Get OpenGL Max2D Driver The returned driver can be used with [SetGraphicsDriver](../../brl/brl.graphics/#function-setgraphicsdriver-drivertgraphicsdriverdefaultflagsgraphicsbackbuffer-) to enable OpenGL Max2D rendering.