Exemplo n.º 1
0
void QuadRenderer::batch(TextureID texture, VertexPosColorTex *vertices, uint16_t numVertices, uint32_t srcBlend, uint32_t dstBlend)
{
    VertexPosColorTex *verticePtr = getQuadVertices(texture, numVertices, true, srcBlend, dstBlend);

    if (!verticePtr)
        return;

    memcpy((void *)verticePtr, (void *)vertices, sizeof(VertexPosColorTex) * numVertices);
}
Exemplo n.º 2
0
void QuadRenderer::batch(TextureID texture, VertexPosColorTex *vertices, uint16_t numVertices)
{
    VertexPosColorTex *verticePtr = getQuadVertices(texture, numVertices, true);

    if (!verticePtr)
    {
        return;
    }

    memcpy((void *)verticePtr, (void *)vertices, sizeof(VertexPosColorTex) * numVertices);
}