MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / drawPoint

Method drawPoint

examples/OpenGLWindow/GLInstancingRenderer.cpp:1932–1937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932void GLInstancingRenderer::drawPoint(const double* position, const double color[4], double pointDrawSize)
1933{
1934 float pos[4] = {(float)position[0], (float)position[1], (float)position[2], 0};
1935 float clr[4] = {(float)color[0], (float)color[1], (float)color[2], (float)color[3]};
1936 drawPoints(pos, clr, 1, 3 * sizeof(float), float(pointDrawSize));
1937}
1938
1939void GLInstancingRenderer::drawPoint(const float* positions, const float color[4], float pointDrawSize)
1940{

Callers 2

drawGridMethod · 0.45
MyDrawTreeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected