Skip to content
Snippets Groups Projects
Commit c9348008 authored by Yoel's avatar Yoel
Browse files

Image is now also sampler for textures

parent 8ef6d036
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
#include "Sampler.h"
namespace util {
class Image {
class Image : public Sampler {
public:
Image(int width, int height);
......@@ -16,6 +16,8 @@ class Image {
Vec3 operator[](const std::array<int, 2>& i) const; // int x, int y
Vec3& operator[](const std::array<int, 2>& i);
Vec3 color(float x, float y) const override;
const int width;
const int height;
void gammaCorrect(float gamma);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment