我正在使用openframeworks(通过OpenGL渲染),我正在尝试从它的中心旋转图像.
我知道我应该使用ofRotate(),ofTranslate()但我没有设法自己解决.这是我到目前为止所尝试的:
ofRotate()
ofTranslate()
ofPushMatrix(); ofRotate(ofRandom(10),0.0,0.0,1.0); leafImg.draw(100,100); ofPopMatrix();
c++ opengl openframeworks
c++ ×1
openframeworks ×1
opengl ×1