Ignore:
Timestamp:
Aug 25, 2011, 2:07:38 AM (9 years ago)
Author:
sam
Message:

render: add a Gradient class that will be used for dithering later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/title.cpp

    r792 r860  
    7676    float timer, length;
    7777    int nframes, animid;
     78
     79    /* Sky shader test */
     80    Gradient *gradient;
    7881};
    7982
     
    165168
    166169    data->eagle.y = 140 + rand() % 40;
     170
     171    data->gradient = new Gradient(vec3(0.0f, 0.0f, 0.0f),
     172                                  vec3(640.0f, 480.0f, 0.0f));
     173    Ticker::Ref(data->gradient);
    167174
    168175    Input::TrackMouse(this);
     
    391398    for (int n = 0; n < 7; n++)
    392399        Tiler::Deregister(data->event[n]);
     400    Ticker::Unref(data->gradient);
    393401    delete data;
    394402}
Note: See TracChangeset for help on using the changeset viewer.