MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetPickRayFromViewport

Method GetPickRayFromViewport

trinity/TriDevice.cpp:1124–1130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122}
1123
1124void TriDevice::GetPickRayFromViewport( int x, int y, TriViewport* viewport, const Matrix& view, const Matrix& proj, Vector3& rayWorld, Vector3& startWorld )
1125{
1126 float xp, yp;
1127 ScreenToProjection( x, y, &xp, &yp, viewport );
1128
1129 ConvertProjectionCoordToWorldPickRay( xp, yp, &proj, &view, &startWorld, &rayWorld );
1130}
1131
1132void TriDevice::ScreenToProjection( int x, int y, float* fx, float* fy )
1133{

Callers

nothing calls this directly

Tested by

no test coverage detected