15 lines
348 B
C++
15 lines
348 B
C++
#include "Renderable.h"
|
|
#include "../resource/Turbo_Color_Map.h"
|
|
|
|
namespace renderive {
|
|
|
|
std::vector<Pixel> get_turbo_color_gradient() {
|
|
std::vector<Pixel> colors;
|
|
colors.reserve(Turbo_Color_Map.size());
|
|
for (const auto& c : Turbo_Color_Map)
|
|
colors.push_back(pack_rgba(c.red, c.green, c.blue, c.alpha));
|
|
return colors;
|
|
}
|
|
|
|
}
|