Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
screen.hpp
1 
16 #pragma once
17 
18 #include <string>
19 #include "sdl.hpp"
20 
21 #include "image.hpp"
22 
23 namespace rt{
33  class screen : public image{
34  private:
35  static int initialized;
36  static SDL_Surface* buffer;
38  public:
42  screen(int width, int height);
43 
48  virtual ~screen();
49 
53  virtual void update();
54 
59  bool wait_quit_event();
60  };
61 }
62 
virtual int width() const
Definition: image.hpp:66
screen(int width, int height)
Definition: screen.cpp:17
Definition: bitmap.cpp:4
virtual ~screen()
Definition: screen.cpp:36
bool wait_quit_event()
wait indefinitely for the next quit event
Definition: screen.cpp:52
virtual void update()
Definition: screen.cpp:46
virtual int height() const
Definition: image.hpp:73
Graphical window.
Definition: screen.hpp:33
Image surface.
Definition: image.hpp:31