number display

I want to visualize Pascal’s triangle and tetrahedron using Open GL. Basically, I want to position (maybe post would be a better word) numbers in space according to a rule. For example, the value at the coordinate (2,2,1) would be (2+2+1)!/(2)!/(2)!/(1)!, or 30. So the number 30 would appear at the coordinate (2,2,1). Is there a command that posts numbers in space like this? Also, if I want to get creative, can I post spheres that have the numbers on them so it’s easier to see and perceive depth?

Not OpenGL specific function but check here .