Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Draw2D() in menu.cpp and utility.cpp
11-26-2005, 04:37 AM,
Draw2D() in menu.cpp and utility.cpp
Just out of curiosity, why is there a Draw2D function in menu.cpp? It seems to be exactly the same as the one in utility.cpp except for two lines. Is there a particular reason to have that function besides convenience of calling a local function instead of something in utility?
11-27-2005, 06:54 PM,
Draw2D() in menu.cpp and utility.cpp
Originally, Draw2D was a function I wrote for use by the menu class. I later realized that it was a useful function for other classes too, so I added it to the utility class so I only have to have the function in one place. I guess I forgot to completely remove it from menu.cpp....
11-30-2005, 05:15 PM,
Draw2D() in menu.cpp and utility.cpp
Well, I guess the original Draw2D function will be gone anyway when the new Gui class replaces the MENU class. I was just wondering if I needed to duplicate this function somehow in Gui, I didn't think I did.

Forum Jump:

Users browsing this thread: 1 Guest(s)