MCPcopy Create free account
hub / github.com/arrayfire/forge / cmapLength

Method cmapLength

src/backend/opengl/colormap_impl.cpp:89–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89GLuint colormap_impl::cmapLength(forge::ColorMap cmap) const
90{
91 switch(cmap) {
92 case FG_COLOR_MAP_SPECTRUM: return mSpecMapLen;
93 case FG_COLOR_MAP_RAINBOW : return mRainbowMapLen;
94 case FG_COLOR_MAP_RED : return mRedMapLen;
95 case FG_COLOR_MAP_MOOD : return mMoodMapLen;
96 case FG_COLOR_MAP_HEAT : return mHeatMapLen;
97 case FG_COLOR_MAP_BLUE : return mBlueMapLen;
98 case FG_COLOR_MAP_INFERNO : return mInfernoMapLen;
99 case FG_COLOR_MAP_MAGMA : return mMagmaMapLen;
100 case FG_COLOR_MAP_PLASMA : return mPlasmaMapLen;
101 case FG_COLOR_MAP_VIRIDIS : return mViridisMapLen;
102 default: return mDefMapLen;
103 }
104}
105
106}
107}

Callers 2

window_implMethod · 0.80
setColorMapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected