C++: Show Full Screen Images in a UI (Part II: Using Openframework)

06 Jun

One of my colleague recommended me using Openframework to implement the program to show a full screen image. See more details in this previous blog.

So I first created an application class FullScreenApp, which derives from ofBaseApp:


An ofImage object is then introduced, and the update() and draw() function is overriden:


In the main() function, call the below code:


Here the code to load background image and process command line argument is skipped since it is fairly simple and straightforward.

Build and Run! Happy coding!

Leave a comment

Posted by on June 6, 2012 in Programming


Tags: , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: