Hello, I am trying to load images as mentioned in tutorials 1 and 2, but no success. Can You give me a hint?
my Cinder version is 0.9.1
Hello, I am trying to load images as mentioned in tutorials 1 and 2, but no success. Can You give me a hint?
my Cinder version is 0.9.1
// 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 );
Thank You!