MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / getPixel

Method getPixel

shared/Bitmap.h:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 (*this.*setPixelFunc)(x, y, c);
58 }
59 glm::vec4 getPixel(int x, int y) const
60 {
61 return ((*this.*getPixelFunc)(x, y));
62 }
63private:
64 using setPixel_t = void(Bitmap::*)(int, int, const glm::vec4&);
65 using getPixel_t = glm::vec4(Bitmap::*)(int, int) const;

Calls

no outgoing calls

Tested by

no test coverage detected