jvcleave / ofxOMXPlayer

OpenMax accelerated video player for openFrameworks on the Raspberry Pi 0-3. Does not work with RPI4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there an analog for getTexture() ?

prismspecs opened this issue · comments

commented

There is getTextureReference() which returns an ofTexture (reference).
This only works with textured mode though.
https://github.com/jvcleave/ofxOMXPlayer/blob/master/src/ofxOMXPlayer.h#L23

Would something like this be valid?

mesh.addTexCoord(videoTexture.getTextureReference().getCoordFromPoint(mappedX, mappedY));