Skip to content
Snippets Groups Projects
Commit cc748aed authored by Jan Müller's avatar Jan Müller
Browse files

change GetColor parameter to size_t

#470
parent af43627e
No related branches found
No related tags found
1 merge request!151Feature/#470 create a color lookup table
......@@ -40,7 +40,7 @@ void LookupTable::Generate(int num_colors) {
transfer_function_.Interpolate(min_key_ + i * step));
}
}
glm::vec4 LookupTable::GetColor(int index) const {
glm::vec4 LookupTable::GetColor(std::size_t index) const {
return lookup_table_.at(index);
}
......
......@@ -45,7 +45,7 @@ class PHOENIX_EXPORT LookupTable {
~LookupTable() = default;
std::size_t GetIndex(float key) const;
glm::vec4 GetColor(int index) const;
glm::vec4 GetColor(std::size_t index) const;
std::size_t GetSize() const;
std::unique_ptr<gl::texture_1d> GetTexture1D() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment