Implement physics engine APIs and add RenderLine method with textures