GetVectorInSpace: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (boldiness)
m (clean up, added orphan, deadend tags)
 
Line 1: Line 1:
{{Multiple issues|
{{Dead end|date=January 2024}}
{{Orphan|date=January 2024}}
}}
== bool '''GetVectorInScreenSpace'''( Vector pos, int& iX, int& iY, Vector *vecOffset ) ==
== 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 <code>vecOffset</code> to <code>pos</code>. It returns the screenspace positions based on the current resolution, which makes it unnecessary to scale it for other resolutions.
This function converts an absolute position in the world to screenspace at the client. Also adds <code>vecOffset</code> to <code>pos</code>. It returns the screenspace positions based on the current resolution, which makes it unnecessary to scale it for other resolutions.
[[Category:Functions]]
[[Category:Functions]]

Latest revision as of 10:03, 21 January 2024

Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

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.