Fastest way to compute 2D view point from 3D point?

I have a point in an OpenGL 3D perspective view. What is the fastest way to figure out what 2D view coordinate the 3D point maps to?

I’m hoping there is a way to simply apply the projection matrix to the point. Is there a way in OpenGL to apply the projection matrix and retrive the coordinate result?

All suggestions are much appreciated.

Thanks in advance.

robosport

gluProject

Exactly what I was looking for. Thank you for the quick response!

robosport