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

Method cmapUniformBufferId

src/backend/opengl/colormap_impl.cpp:72–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72GLuint colormap_impl::cmapUniformBufferId(forge::ColorMap cmap) const
73{
74 switch(cmap) {
75 case FG_COLOR_MAP_SPECTRUM: return mSpecMapBuffer;
76 case FG_COLOR_MAP_RAINBOW : return mRainbowMapBuffer;
77 case FG_COLOR_MAP_RED : return mRedMapBuffer;
78 case FG_COLOR_MAP_MOOD : return mMoodMapBuffer;
79 case FG_COLOR_MAP_HEAT : return mHeatMapBuffer;
80 case FG_COLOR_MAP_BLUE : return mBlueMapBuffer;
81 case FG_COLOR_MAP_INFERNO : return mInfernoMapBuffer;
82 case FG_COLOR_MAP_MAGMA : return mMagmaMapBuffer;
83 case FG_COLOR_MAP_PLASMA : return mPlasmaMapBuffer;
84 case FG_COLOR_MAP_VIRIDIS : return mViridisMapBuffer;
85 default: return mDefaultMapBuffer;
86 }
87}
88
89GLuint colormap_impl::cmapLength(forge::ColorMap cmap) const
90{

Callers 2

window_implMethod · 0.80
setColorMapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected