bool WebcamData::getFrame(DynamicTexture& texture) { if (m_state != WebcamState::Active) { return false; } { std::lock_guard<std::mutex> lock(m_imageMutex); return texture.fill(m_image); } }
void init()override{ texture.fill(m_data->Result_Back); RetryButton = Rect(140, 200, 200, 50); TweetButton = Rect(140,295,200,50); TitleButton = Rect(140,400,200,50); }