Programming and Graphics

(Kiana) #1

324 Introduction to C++ Programming and Graphics


Double buffering


backbuffer ( ) Make vogle draw in the backbuffer;
returns -1 if the device is not up to it
frontbuffer () Make vogle draw in the front buffer;
this will always work
swapbuffers () Swap the front and back buffers

Position


getgp (x, y, z) Get the current graphics position
in world coordinates
getgp2 (x, y) Get the current graphics position
in world coordinates
sgetgp2 (x, y) Get the current screen graphics position
in screen coordinates ranging from -1 to 1
Free download pdf