Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Rotating an fbo

$
0
0

@robotPatrol wrote:

i am trying to rotate an fbo.

i have tested the following code in ofapp::draw() {}

layer.bind();
layer.getTexture().getTextureMatrix().newRotationMatrix(ofRandom(360), 30, 50, 78);
layer.draw(0, 0);
layer.unbind();

layer.draw(0, 0); draws, but
layer.getTexture().getTextureMatrix().newRotationMatrix(ofRandom(360), 30, 50, 78); has no effect

nothing renders when i use layer.bind(); and layer.unbind();

thanks,
01

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles