- Timestamp:
- Oct 14, 2008, 5:58:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/ogreode/OgreOdeDebugContact.cpp
r1919 r1922 28 28 //------------------------------------------------------------------------------------------------ 29 29 DebugContact::DebugContact(const String &name, World *world) : 30 _enabled(false), 30 31 _name(name), 31 _world(world), 32 _enabled(false) 32 _world(world) 33 33 { 34 34 // scene node … … 115 115 int charHeight, 116 116 const ColourValue &color) 117 : mpCam(NULL) 118 , mpWin(NULL) 119 , mpFont(NULL) 117 : mFontName(fontName) 118 , mType("DebugContact") 120 119 , mName(name) 121 120 , mCaption(caption) 122 , mFontName(fontName) 121 , mHorizontalAlignment(H_LEFT) 122 , mVerticalAlignment(V_BELOW) 123 , mColor(color) 123 124 , mCharHeight(charHeight) 124 , mColor(color)125 , mType("DebugContact")126 , mTimeUntilNextToggle(0)127 125 , mSpaceWidth(0) 128 126 , mUpdateColors(true) 129 127 , mOnTop(false) 130 , mHorizontalAlignment(H_LEFT) 131 , mVerticalAlignment(V_BELOW) 128 , mTimeUntilNextToggle(0) 132 129 , mAdditionalHeight(0.0) 130 , mpCam(NULL) 131 , mpWin(NULL) 132 , mpFont(NULL) 133 133 , mNode(node) 134 134 … … 317 317 bind->setBinding(COLOUR_BINDING, cbuf); 318 318 319 size_t charlen = mCaption.size(); 319 // Unused variable 320 //size_t charlen = mCaption.size(); 320 321 Real *pPCBuff = static_cast<Real*>(ptbuf->lock(HardwareBuffer::HBL_DISCARD)); 321 322 … … 326 327 // Derive space width from a capital A 327 328 if (mSpaceWidth == 0) 328 mSpaceWidth = mpFont->getGlyphAspectRatio('A') * mCharHeight * 2.0;329 mSpaceWidth = (unsigned int)(mpFont->getGlyphAspectRatio('A') * mCharHeight * 2.0); 329 330 330 331 // for calculation of AABB
Note: See TracChangeset
for help on using the changeset viewer.