GarageGames / Torque2D

MIT Licensed Open Source version of Torque 2D game engine from GarageGames

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Studio compile failed in T2D 3.2

yurembo opened this issue · comments

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