- Timestamp:
- Jul 4, 2010, 9:54:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tiler.cpp
r33 r56 107 107 { 108 108 int tile = data->tiles[4 * n]; 109 float ty = .0 3125f * (tile / 16);109 float ty = .0208333333f * (tile / 16); 110 110 float tx = .0625f * (tile % 16); 111 111 uvs[8 * n + 0] = tx; … … 114 114 uvs[8 * n + 3] = ty; 115 115 uvs[8 * n + 4] = tx + .0625f; 116 uvs[8 * n + 5] = ty + .0 3125f;116 uvs[8 * n + 5] = ty + .0208333333f; 117 117 uvs[8 * n + 6] = tx; 118 uvs[8 * n + 7] = ty + .0 3125f;118 uvs[8 * n + 7] = ty + .0208333333f; 119 119 } 120 120 glBindBuffer(GL_ARRAY_BUFFER, data->buflist[1]);
Note: See TracChangeset
for help on using the changeset viewer.