Esempio n. 1
0
void ParticleSystem::PopOpenGLStates(sf::RenderWindow& target) const
{
	// Restore projection matrix
	glMatrixMode(GL_PROJECTION);
	glPopMatrix();

	// Restore modelview matrix
	glMatrixMode(GL_MODELVIEW); 
	glPopMatrix();

	// Restore attributes
	glPopAttrib();

	// Switch back, restore SFML's OpenGL state
	target.RestoreGLStates();
}