Quantcast
Viewing all articles
Browse latest Browse all 40524

Creating a pointer to a vector of Images

You'd need to dereference the pointer to access the ofImages like so:

(*viewImages)[currentFrame].draw(0, 0);

Not really sure if changing this to be a vector of pointers to individual ofImages would be "better" or easier to read, but I think that's how I'd approach it. I have a feeling either way is just fine Image may be NSFW.
Clik here to view.
:smile:

cheers!


Viewing all articles
Browse latest Browse all 40524

Trending Articles