Actually, you guys missed my point。。。Well you didn't explain it good enough then... ;)
Actually, you guys missed my point。。。Well you didn't explain it good enough then... ;)
Please make use of the code=cpp tags when presenting code. ;)
I don't fully know your code, etc. but from what you wrote you probably want to refractor your code, because to me it sounds like you'd leave behind some unitialized variables, which is a bad thing. Also you might want to handle the drag event better. For instance you check when the dragging is done and then call a function that (re)creates the texture and not every time the MouseMoveEvent is triggered. ;)
I'd also highly suggest to use smart pointers instead of raw pointers.