MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / gpu_RenderPolygonUV2

Function gpu_RenderPolygonUV2

renderer/HardwareOpenGL.cpp:1526–1540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1524}
1525
1526void gpu_RenderPolygonUV2(PosColorUV2Vertex *vData, uint32_t nv) {
1527 dglVertexPointer(3, GL_FLOAT, sizeof(*vData), &vData->pos);
1528 dglColorPointer(4, GL_FLOAT, sizeof(*vData), &vData->color);
1529 oglClientActiveTextureARB(GL_TEXTURE0_ARB + 0);
1530 dglTexCoordPointer(4, GL_FLOAT, sizeof(*vData), &vData->uv0);
1531 oglClientActiveTextureARB(GL_TEXTURE0_ARB + 1);
1532 dglEnableClientState(GL_TEXTURE_COORD_ARRAY);
1533 dglTexCoordPointer(4, GL_FLOAT, sizeof(*vData), &vData->uv1);
1534
1535 dglDrawArrays(GL_POLYGON, 0, nv);
1536 OpenGL_polys_drawn++;
1537 OpenGL_verts_processed += nv;
1538
1539 CHECK_ERROR(10)
1540}
1541
1542void rend_SetFlatColor(ddgr_color color) { gpu_state.cur_color = color; }
1543

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected