MCPcopy Create free account
hub / github.com/dfranx/SHADERed / getPixelColor

Function getPixelColor

src/SHADERed/InterfaceManager.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 return ret;
23 }
24 glm::vec4 getPixelColor(GLuint rt, uint8_t* data, int x, int y, int width)
25 {
26 uint8_t* pxData = getRawPixel(rt, data, x, y, width);
27 return glm::vec4(pxData[0] / 255.0f, pxData[1] / 255.0f, pxData[2] / 255.0f, pxData[3] / 255.0f);
28 }
29 uint32_t getPixelID(GLuint rt, uint8_t* data, int x, int y, int width)
30 {
31 uint8_t* pxData = getRawPixel(rt, data, x, y, width);

Callers 1

DebugClickMethod · 0.85

Calls 1

getRawPixelFunction · 0.85

Tested by

no test coverage detected