Skip to content

bgfx::setTransform not moving object #3429

Closed Answered by bkaradzic
DarthCloud64 asked this question in Q&A
Discussion options

You must be logged in to vote
        bgfx::setTransform(transformationMatrix);

        bgfx::touch(0); // <<---- Move this above bgfx::setTransform call!
        bgfx::setVertexBuffer(0, renderableComponent.vertexBufferHandle);
        bgfx::setIndexBuffer(renderableComponent.indexBufferHandle);
        bgfx::setState(BGFX_STATE_DEFAULT);
        bgfx::submit(0, renderableComponent.shaderProgram);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DarthCloud64
Comment options

@bkaradzic
Comment options

Answer selected by bkaradzic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants