Any mirror?

i want to put a mirror in my program but i’ve never saw something about mirrors in opengl is there no fuction that lets vertices mirroring something? Maybe in glut? Its equal how slow the function is cose my game is not the fastest, i’ve programmed tetris3d and that needs not very much frames Thanks



There are no functions for reflections in OpenGL. You must make your own reflections.

If you want to reflect object(s) in a flat plane, like a mirror, you should look at on how to use the stencil buffer to create nice looking reflections.

And no, there’s nothing like this in GLUT

ok thanks
then i must try it this way