How to load and dispaly images properly?


#1

Hello, I am trying to load images as mentioned in tutorials 1 and 2, but no success. Can You give me a hint? :slight_smile:

my Cinder version is 0.9.1


#2
// Only do this once, and store it somewhere
// This assumes "image.png" is in your assets folder
gl::Texture2dRef texture = gl::Texture2d::create ( loadImage ( loadAsset ( "image.png" ) ) );

// to draw
gl::draw ( texture );

#3

Thank You! :unicorn: