| 70 | } |
| 71 | |
| 72 | GLuint 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 | |
| 89 | GLuint colormap_impl::cmapLength(forge::ColorMap cmap) const |
| 90 | { |
no outgoing calls
no test coverage detected