GarageGames / Torque2D

MIT Licensed Open Source version of Torque 2D game engine from GarageGames
MIT License
1.67k stars 1.56k forks source link

Android Studio compile failed in T2D 3.2 #331

Closed yurembo closed 8 years ago

yurembo commented 8 years ago

I found that clean version of T2D 3.2 doesn't compile in Android Studio. I remember these errors. These errors were in T2D 3.1, but somebody corrected them. My last engine 3.1 compiled fine.

First two errors are here:

if (mIsCircle) { glRotatef( mRadToDeg(getRenderAngle()), 0.0f, 0.0f, 1.0f );

    // Render the shape.
    bool wireFrame = (pBatchRenderer->getWireframeMode() || this->getDebugMask() & Scene::DebugOption::SCENE_DEBUG_WIREFRAME_RENDER) ? true : false;
    renderCircleShape(position, mCircleRadius, wireFrame);
}
else
{
    // Move into Vector-Space.
    glTranslatef( position.x, position.y, 0.0f );
    glRotatef( mRadToDeg(getRenderAngle()), 0.0f, 0.0f, 1.0f );

    // Render the shape.
    bool wireFrame = (pBatchRenderer->getWireframeMode() || this->getDebugMask() & Scene::DebugOption::SCENE_DEBUG_WIREFRAME_RENDER) ? true : false;
    renderPolygonShape(vertexCount, wireFrame);
}

Error:(145, 95) error: 'Scene::DebugOption' is not a class or namespace

And other errors are the same