Commit 4b6b9285 authored by Tim Übelhör's avatar Tim Übelhör

small api naming change

parent 912efd38
......@@ -68,7 +68,7 @@ public:
* \param data pointer to the full texture
* \param pixel_size size of one pixel in bytes (sizeof(type) * n_channels)
*/
ImageHeader get_view_image(size_t row, size_t column, void *data,
ImageHeader get_image(size_t row, size_t column, void *data,
size_t pixel_size) const;
/**
......@@ -77,7 +77,7 @@ public:
* \param data pointer to the full texture
* \param pixel_size size of one pixel in bytes (sizeof(type) * n_channels)
*/
ImageHeader get_view_image(size_t view, void *data,
ImageHeader get_image(size_t view, void *data,
size_t pixel_size) const;
size_t get_views_per_row() const;
......
......@@ -92,7 +92,7 @@ void Rasterizer::set_view_height(size_t height)
texture_height = views_per_column * height;
}
Rasterizer::ImageHeader Rasterizer::get_view_image(
Rasterizer::ImageHeader Rasterizer::get_image(
size_t row, size_t column, void *data, size_t pixel_size) const
{
auto xy = view_xy(row, column);
......@@ -107,11 +107,11 @@ Rasterizer::ImageHeader Rasterizer::get_view_image(
return header;
}
Rasterizer::ImageHeader Rasterizer::get_view_image(
Rasterizer::ImageHeader Rasterizer::get_image(
size_t view, void *data, size_t pixel_size) const
{
auto pos = view_position(view);
return get_view_image(pos.first, pos.second, data, pixel_size);
return get_image(pos.first, pos.second, data, pixel_size);
}
std::pair<size_t, size_t> Rasterizer::view_position(size_t view) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment