91
Graphics / Partially drawing/hiding a sf::Shape::Line
« on: December 03, 2011, 03:22:54 pm »
You could use glScissor: it will only draw objects which are within a rectangle area.
It's really easy to use:
documentation: http://www.opengl.org/sdk/docs/man/xhtml/glScissor.xml
It's really easy to use:
Code: [Select]
glEnable(GL_SCISSOR_TEST);
glScissor(right_x, bottom_y, width, height);
// draw your stuff
glDisable(GL_SCISSOR_TEST);
documentation: http://www.opengl.org/sdk/docs/man/xhtml/glScissor.xml