Rendering library for 2D/3D graphics