| 362 | } |
| 363 | |
| 364 | void OglRenderer::renderPolylineTile(shapeObj *shape, const OglCachePtr& tile){ |
| 365 | makeCurrent(); |
| 366 | glBindTexture(GL_TEXTURE_2D, tile->texture); // Select Our Texture |
| 367 | glBegin(GL_TRIANGLE_STRIP); |
| 368 | |
| 369 | double place = 0.0; |
| 370 | for (int i = 0; i < shape->numlines; i++) |
| 371 | { |
| 372 | for (int j = 0; j < shape->line[i].numpoints - 1; j++) |
| 373 | { |
| 374 | double dist = drawTriangles(&shape->line[i].point[j], &shape->line[i].point[j + 1], tile->height, tile->width, place / tile->width); |
| 375 | place = (place + dist); |
| 376 | while (place >= tile->width) place -= tile->width; |
| 377 | } |
| 378 | } |
| 379 | glEnd(); |
| 380 | glBindTexture(GL_TEXTURE_2D, 0); |
| 381 | } |
| 382 | |
| 383 | |
| 384 | void OglRenderer::renderVectorSymbol(double x, double y, symbolObj *symbol, double scale, double angle, colorObj *c, colorObj *oc, double ow) |
no outgoing calls
no test coverage detected