1 class Video { 2 public: 3 enum Mode { 4 ModeNTSC, 5 ModePAL, 6 }; 7 void set_mode(Mode); 8 9 private: 10 Mode mode; 11 bool frame_interlace; 12 bool frame_field; 13 14 void update(); 15 void scanline(); 16 void render_scanline(unsigned line); 17 void init(); 18 19 static const uint8_t cursor[15][16]; 20 void draw_cursor(const int rline, const bool hires, const uint16_t color, const int x, const int y); 21 22 friend class System; 23 friend class PPU; // Just for render_scanline() 24 }; 25 26 extern Video video; 27