Ejemplo n.º 1
0
void ofxMovieClip<ImageType>::draw(float x, float y) {

    if(isCustomSize)
        getTexturePtr()->draw(x, y, width, height);
    else
        getTexturePtr()->draw(x, y);
    tick(); // now gets called whenever a drawFrame is requested instead of manually
}
Ejemplo n.º 2
0
void GraphicObject::setTexture(std::string _fileDir)
{
	this->texture_ = getTexturePtr(_fileDir);
	this->sprite_.setTexture(*this->texture_ , true);
}
Ejemplo n.º 3
0
void ofxMovieClip<ImageType>::draw(float x, float y, float w, float h) {

    getTexturePtr()->draw(x, y, w, h);
    tick(); // now gets called whenever a drawFrame is requested instead of manually
}