Presenting stimuli in depth

Hello,

I am trying to present two stimuli in depth using openGL. The stimuli consist of a tilted frame and a rod presented centrally inside the frame (that also varies in orientation). I have found a lot of useful documentation on drawing 3D objects and I have been successful in drawing these objects, but the functions I have been using don't seem appropriate for my stimuli.

I would like to present the stimuli so that neither the frame or the rod will actually be 3D. They will both be 2D objects, but what I would like to do is present the rod in front of the frame on some trials, and behind it on others. So, you could imagine translating the rod closer to, or further from the observer. The perception of depth will be achieved by using stereo goggles.

Do you have any input on appropriate functions?

Thank you for your help.

Ben