#include "DragAndDropManager.h" #include "ToolTipManager.h" DragAndDropManager::DragAndDropManager( double inAnchorX, double inAnchorY, double inWidth, double inHeight ) : GUIComponentGL( inAnchorX, inAnchorY, inWidth, inHeight ), mNumSprites( 0 ), mSprites( NULL ), mOffsets( NULL ), mTrans( NULL ), mGlows( NULL ), mDragging( false ) { } DragAndDropManager::~DragAndDropManager() { clear(); } void DragAndDropManager::clear() { if( mSprites != NULL ) { for( int i=0; idraw( 0, 0, &pos, mZoom, mTrans[i] ); if( mGlows[i] ) { // back to normal blend glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); } } } }