Example #1
0
	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);
		}
	}
Example #2
0
	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);
	}