Esempio n. 1
0
	Error operator()(GlState&)
	{
		OcclusionQueryImpl& impl = m_q->getImplementation();

		impl.init(m_condRenderingBit);

		GlObject::State oldState =
			impl.setStateAtomically(GlObject::State::CREATED);

		(void)oldState;
		ANKI_ASSERT(oldState == GlObject::State::TO_BE_CREATED);

		return ErrorCode::NONE;
	}
Esempio n. 2
0
	Error operator()(GlState&)
	{
		m_handle->getImplementation().end();
		return ErrorCode::NONE;
	}