Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
bitmap.hpp
1 
15 #pragma once
16 
17 #include "image.hpp"
18 #include <string>
19 
20 namespace rt{
21 
27 class bitmap : public rt::image{
28 public:
32  bitmap(const std::string & filename);
33 
37  virtual color get_pixel(int x, int y) const;
41  virtual void set_pixel(int x, int y, const color& c);
42 };
43 
44 }
virtual void set_pixel(int x, int y, const color &c)
Sets a pixel to a given color.
Definition: bitmap.cpp:32
bitmap(const std::string &filename)
Make a bitmap from a file name.
Definition: bitmap.cpp:6
Definition: bitmap.cpp:4
RGBA color representation.
Definition: color.hpp:31
virtual color get_pixel(int x, int y) const
Definition: bitmap.cpp:19
Load an image from the file system.
Definition: bitmap.hpp:27
Image surface.
Definition: image.hpp:31