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

Method initGetSetFuncs

shared/Bitmap.h:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 getPixel_t getPixelFunc = &Bitmap::getPixelUnsignedByte;
68
69 void initGetSetFuncs()
70 {
71 switch (fmt_)
72 {
73 case eBitmapFormat_UnsignedByte:
74 setPixelFunc = &Bitmap::setPixelUnsignedByte;
75 getPixelFunc = &Bitmap::getPixelUnsignedByte;
76 break;
77 case eBitmapFormat_Float:
78 setPixelFunc = &Bitmap::setPixelFloat;
79 getPixelFunc = &Bitmap::getPixelFloat;
80 break;
81 }
82 }
83
84 void setPixelFloat(int x, int y, const glm::vec4& c)
85 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected