Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2008, 5:58:59 PM (17 years ago)
Author:
rgrieder
Message:

Minor adjustments to OgreODE when compiling under gcc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/ogreode/OgreOdeDebugContact.cpp

    r1919 r1922  
    2828    //------------------------------------------------------------------------------------------------
    2929    DebugContact::DebugContact(const String &name, World *world) :
     30        _enabled(false),
    3031        _name(name),
    31         _world(world),
    32         _enabled(false)
     32        _world(world)
    3333    {
    3434        // scene node
     
    115115                                int charHeight,
    116116                                const ColourValue &color)
    117         : mpCam(NULL)
    118         , mpWin(NULL)
    119         , mpFont(NULL)
     117        : mFontName(fontName)
     118        , mType("DebugContact")
    120119        , mName(name)
    121120        , mCaption(caption)
    122         , mFontName(fontName)
     121        , mHorizontalAlignment(H_LEFT)
     122        , mVerticalAlignment(V_BELOW)
     123        , mColor(color)
    123124        , mCharHeight(charHeight)
    124         , mColor(color)
    125         , mType("DebugContact")
    126         , mTimeUntilNextToggle(0)
    127125        , mSpaceWidth(0)
    128126        , mUpdateColors(true)
    129127        , mOnTop(false)
    130         , mHorizontalAlignment(H_LEFT)
    131         , mVerticalAlignment(V_BELOW)
     128        , mTimeUntilNextToggle(0)
    132129        , mAdditionalHeight(0.0)
     130        , mpCam(NULL)
     131        , mpWin(NULL)
     132        , mpFont(NULL)
    133133        , mNode(node)
    134134
     
    317317        bind->setBinding(COLOUR_BINDING, cbuf);
    318318
    319         size_t charlen = mCaption.size();
     319                // Unused variable
     320        //size_t charlen = mCaption.size();
    320321        Real *pPCBuff = static_cast<Real*>(ptbuf->lock(HardwareBuffer::HBL_DISCARD));
    321322
     
    326327        // Derive space width from a capital A
    327328        if (mSpaceWidth == 0)
    328             mSpaceWidth = mpFont->getGlyphAspectRatio('A') * mCharHeight * 2.0;
     329            mSpaceWidth = (unsigned int)(mpFont->getGlyphAspectRatio('A') * mCharHeight * 2.0);
    329330
    330331        // for calculation of AABB
Note: See TracChangeset for help on using the changeset viewer.