GetVectorInSpace

From Valve Developer Community
Revision as of 15:22, 22 July 2006 by Ts2do (talk | contribs) (boldiness)
Jump to navigation Jump to search

bool GetVectorInScreenSpace( Vector pos, int& iX, int& iY, Vector *vecOffset )

This function converts an absolute position in the world to screenspace at the client. Also adds vecOffset to pos. It returns the screenspace positions based on the current resolution, which makes it unnecessary to scale it for other resolutions.