Description: This code shows how we can perform rubber-banding system in an OpenGL application The source code here includes a simple C class called jxglTracker. The two main member functions in the class are DrawTrackRect () and Track (). In the DrawTrackRect () function , the logic op is enabled by calling glEnable (GL_COLOR_LOGIC_OP) and the XOR mode is set by calling glLogicOp (GL_XOR). The rubber-banding system rectangle is drawn using glRecti ().
File list (Check if you may need any files):