MCPcopy Create free account
hub / github.com/ddnet/ddnet / ReadPixel

Method ReadPixel

src/engine/client/graphics_threaded.cpp:2754–2761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2752}
2753
2754void CGraphics_Threaded::ReadPixel(ivec2 Position, ColorRGBA *pColor)
2755{
2756 dbg_assert(Position.x >= 0 && Position.x < ScreenWidth(), "ReadPixel position x out of range");
2757 dbg_assert(Position.y >= 0 && Position.y < ScreenHeight(), "ReadPixel position y out of range");
2758
2759 m_ReadPixelPosition = Position;
2760 m_pReadPixelColor = pColor;
2761}
2762
2763void CGraphics_Threaded::ReadPixelDirect(bool *pSwapped)
2764{

Callers 1

UpdateColorPipetteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected