MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / cPalette

Method cPalette

Source/Surface.hpp:31–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 uint8 mBlue;
30
31 cPalette() { mRed = 0; mGreen = 0; mBlue = 0; }
32
33 uint8 getPos( size_t i ) { if (i == 0) return mRed; if (i == 1) return mGreen; if (i == 2) return mBlue; return 0; }
34 void setPos( size_t i, uint8 pval ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected