I recently started using openFrameworks, having come from DirectX, and am running into some issues. I’m using the ofImage class for all the sprites in a game I’m building. The problem is, I used texture mapping for my sprites, having multiple frames of animation in the same image. In DirectX I was able to pass the draw function a rectangle giving the portion of the texture to draw, and was wondering if there was anything in oF for that, extension or otherwise, and if not, how might I go about programming it myself?
take a look at this post, i think this is what you need:
That does look like what I need, thank you! I’ll have to give this a shot.