Ignore:
Timestamp:
Jan 26, 2011, 1:33:36 AM (10 years ago)
Author:
sam
Message:

Change the way the Scene object works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/deushax/mapviewer.cpp

    r259 r289  
    2626    int povx, povy;
    2727    int done;
    28 
    29     Scene *scene;
    3028};
    3129
     
    4038    data->x = data->y = 0;
    4139    data->done = 0;
    42     data->scene = NULL;
    4340}
    4441
     
    5855    Entity::TickDraw(deltams);
    5956
    60     GetScene();
    61 
    62     data->map->Render(data->scene, -data->povx, -data->povy, 0);
    63     data->scene->Render();
    64 
    65     delete data->scene;
    66     data->scene = NULL;
    67 }
    68 
    69 Scene *MapViewer::GetScene()
    70 {
    71     if (!data->scene)
    72         data->scene = new Scene(45.0f);
    73     return data->scene;
     57    data->map->Render(-data->povx, -data->povy, 0);
    7458}
    7559
Note: See TracChangeset for help on using the changeset viewer.