#include #include "Setup.h" using namespace std; // 设定分辨率 void Setup::setResolution() { this->resolution_width = 1920; // 从设定处取得 this->resolution_height = 1080; // 从设定处取得 }; // 取得分辨率 int Setup::getResolution() { // 水平分辨率 X 垂直分辨率 return this->resolution_width * this->resolution_height; };