Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BohemiaInteractive/CWR
/ PixelAlignXY
Method
PixelAlignXY
engine/Poseidon/Graphics/Core/Engine.cpp:230–234 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
228
}
229
230
void Engine::PixelAlignXY(Point2DAbs& pos)
231
{
232
pos.x = toInt(pos.x) + 0.5f;
233
pos.y = toInt(pos.y) + 0.5f;
234
}
235
void Engine::PixelAlignX(Point2DAbs& pos)
236
{
237
pos.x = toInt(pos.x) + 0.5f;
Callers
2
DrawTargetInfo
Method · 0.80
DrawCursor
Method · 0.80
Calls
1
toInt
Function · 0.50
Tested by
no test coverage detected