Leadwerks Engine uses OpenGL for rendering. You can also use OpenGL commands directly to draw 2D and even 3D shapes on the screen.
See "Using OpenGL for drawing (Article)" for more information on how to use OpenGL commands in Leadwerks Engine and an example.