Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: bounding boxes problem  (Read 1100 times)

0 Members and 1 Guest are viewing this topic.

gmysu

  • Newbie
  • *
  • Posts: 9
    • View Profile
bounding boxes problem
« on: August 24, 2012, 03:56:15 pm »
hello,

im writing a fancy little gui system for my personal use. the problem is is the bounding box contains method only works ovet the left and right side of my rectangle (it returns true only there). what is the problem?

if( (buttonBorder->getGlobalBounds()).contains(mouseX,mouseY) ){
                                std::cout << "click!" << std::endl;
                                mouseClick = true;
                        }
 

help me please, it drives me nuts :)

EDIT: solved, i passed mouse x twice :).
« Last Edit: August 24, 2012, 04:48:16 pm by gmysu »