How to add text to a rendering?

I’m working to a project in which there is a viewer that can render multiple 3d objects. I’d like to add some text to the window for some instructions for the user (for example “use wasd to rotate the object”), how can I do this?

Please provide an MWE of the existing rendering code.