Changeset 65 for trunk/src


Ignore:
Timestamp:
Jul 5, 2010, 11:48:18 PM (10 years ago)
Author:
sam
Message:

Fix default tiler image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tiler.cpp

    r56 r65  
    5454
    5555    /* One tile texture */
    56     SDL_Surface *img = IMG_Load("art/test/groundtest.png");
     56    SDL_Surface *img = IMG_Load("art/test/grasstest.png");
    5757
    5858    if (!img)
     
    107107    {
    108108        int tile = data->tiles[4 * n];
    109         float ty = .0208333333f * (tile / 16);
     109        float ty = .0625f * (tile / 16);
    110110        float tx = .0625f * (tile % 16);
    111111        uvs[8 * n + 0] = tx;
     
    114114        uvs[8 * n + 3] = ty;
    115115        uvs[8 * n + 4] = tx + .0625f;
    116         uvs[8 * n + 5] = ty + .0208333333f;
     116        uvs[8 * n + 5] = ty + .0625f;
    117117        uvs[8 * n + 6] = tx;
    118         uvs[8 * n + 7] = ty + .0208333333f;
     118        uvs[8 * n + 7] = ty + .0625f;
    119119    }
    120120    glBindBuffer(GL_ARRAY_BUFFER, data->buflist[1]);
Note: See TracChangeset for help on using the changeset viewer.