void TextBox::draw() { if (mTexture) { if (getAppliedAlpha() == 1) { ci::gl::enableAlphaBlending(true); } else { ci::gl::enableAdditiveBlending(); } ci::gl::color(1, 1, 1, getAppliedAlpha()); ci::gl::draw(mTexture); } }
void poImageShape::draw() { po::setColor(fillColor, getAppliedAlpha()); po::drawTexturedRect(tex, 0,0, tex->getWidth(), tex->getHeight()); }