MCPcopy Create free account
hub / github.com/MapServer/MapServer / renderPolylineTile

Method renderPolylineTile

mapoglrenderer.cpp:364–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void 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
384void OglRenderer::renderVectorSymbol(double x, double y, symbolObj *symbol, double scale, double angle, colorObj *c, colorObj *oc, double ow)

Callers 1

msDrawLineTiledOglFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected