Skip to content

Instantly share code, notes, and snippets.

@iondune
Created April 18, 2016 00:06
Show Gist options
  • Select an option

  • Save iondune/06d1f1360adbfa2cd68dca42ccf0e6ae to your computer and use it in GitHub Desktop.

Select an option

Save iondune/06d1f1360adbfa2cd68dca42ccf0e6ae to your computer and use it in GitHub Desktop.
vec3f WorldCoordinates = vec3f(...);
bool InFront;
vec2i Coords = FreeCamera->GetScreenCoordinates(WorldCoordinates, &InFront);
if (InFront)
{
GUIManager->Text(Coords, "Hello, World!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment