Beispiel #1
0
void done_editor() {
    cmdSavePreset(state.nPreset);

    if (state.sprBG) {
        delete state.sprBG;
    }
    if (state.texBG) {
        hge->Texture_Free(state.texBG);
    }

    delete gui;
    delete spr_left_pane1;
    delete spr_left_pane2;
    delete sprRightPane1;
    delete sprRightPane2;
    delete sprBBox;
    delete sprColor;
    delete spr_cursor;
    delete fnt;
    delete state.ps;
    delete sprParticles;

    hge->Texture_Free(texParticles);
    hge->Texture_Free(tex_gui);

    hge->Resource_RemoveAllPacks();
}
Beispiel #2
0
void DoneEditor()
{
    cmdSavePreset(state.nPreset);

    if(state.sprBG) delete state.sprBG;
    if(state.texBG) hge->Texture_Free(state.texBG);

    delete gui;
    delete sprLeftPane1;
    delete sprLeftPane2;
    delete sprRightPane1;
    delete sprRightPane2;
    delete sprBBox;
    delete sprColor;
    delete sprCursor;
    delete fnt;
    delete state.ps;
    delete sprParticles;

    hge->Texture_Free(texParticles);
    hge->Texture_Free(texGui);

    hge->Resource_RemoveAllPacks();
}