Max2D is supplied with drivers for DX7 (default) and OGL. The drivers are set using the setgraphicsdriver command. Once set all the Bmax native commands can be used but within either a DX or GL context.
Check d3d7max2d.mod and glmax2d.mod for the command implementation for both.
Check d3d7max2d.mod and glmax2d.mod for the command implementation for both.