MCPcopy Create free account
hub / github.com/SpartanJ/eepp / batchPolygonByPoint

Method batchPolygonByPoint

src/eepp/graphics/batchrenderer.cpp:966–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964}
965
966void BatchRenderer::batchPolygonByPoint( const Float& x, const Float& y ) {
967 if ( mNumVertex + 1 >= mVertexSize )
968 return;
969
970 setDrawMode( PRIMITIVE_POLYGON, mForceBlendMode );
971
972 mTVertex = &mVertex[mNumVertex];
973 mTVertex->pos.x = x;
974 mTVertex->pos.y = y;
975 mTVertex->tex = mTexCoord[0];
976 mTVertex->color = mVerColor[0];
977
978 addVertices( 1 );
979}
980
981void BatchRenderer::batchPolygonByPoint( const Vector2f& Vector ) {
982 batchPolygonByPoint( Vector.x, Vector.y );

Callers 2

drawMethod · 0.80
drawRoundedRectangleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected