Changeset 1337
- Timestamp:
- May 4, 2012, 1:00:26 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/vertexbuffer.cpp
r1324 r1337 137 137 } 138 138 #else 139 glFrontFace(GL_CCW); 140 glEnable(GL_CULL_FACE); 139 141 # if defined HAVE_GL_2X && !defined __APPLE__ 140 142 glEnable(GL_ALPHA_TEST); -
trunk/src/gradient.cpp
r1325 r1337 64 64 640.0f, 0.0f, 0.0f, 65 65 0.0f, 480.0f, 0.0f, 66 640.0f, 480.0f, 0.0f, 66 67 0.0f, 480.0f, 0.0f, 67 640.0f, 480.0f, 0.0f,68 68 640.0f, 0.0f, 0.0f, }; 69 69 -
trunk/src/tileset.cpp
r1310 r1337 279 279 float tmp[10]; 280 280 281 *vertex++ = pos.x + dx; 282 *vertex++ = pos.y + dy; 283 *vertex++ = pos.z + dz; 284 *texture++ = tx + data->tx; 285 *texture++ = ty; 286 281 287 *vertex++ = tmp[0] = pos.x; 282 288 *vertex++ = tmp[1] = pos.y + dy; … … 285 291 *texture++ = tmp[4] = ty; 286 292 287 *vertex++ = pos.x + dx;288 *vertex++ = pos.y + dy;289 *vertex++ = pos.z + dz;290 *texture++ = tx + data->tx;291 *texture++ = ty;292 293 293 *vertex++ = tmp[5] = pos.x + dx; 294 294 *vertex++ = tmp[6] = pos.y; … … 297 297 *texture++ = tmp[9] = ty + data->ty; 298 298 299 *vertex++ = tmp[5]; 300 *vertex++ = tmp[6]; 301 *vertex++ = tmp[7]; 302 *texture++ = tmp[8]; 303 *texture++ = tmp[9]; 304 299 305 *vertex++ = tmp[0]; 300 306 *vertex++ = tmp[1]; … … 303 309 *texture++ = tmp[4]; 304 310 305 *vertex++ = tmp[5];306 *vertex++ = tmp[6];307 *vertex++ = tmp[7];308 *texture++ = tmp[8];309 *texture++ = tmp[9];310 311 311 *vertex++ = pos.x; 312 312 *vertex++ = pos.y;
Note: See TracChangeset
for help on using the changeset viewer.