void Sprite::setX(int value) { guardDisposed(); if (p->trans.getPosition().x == value) return; p->trans.setPosition(Vec2(value, getY())); }
void WindowVX::update() { guardDisposed(); p->stepAnimations(); p->updatePauseQuad(); p->updateCursorAlpha(); }
int Bitmap::height() const { guardDisposed(); if (p->megaSurface) return p->megaSurface->h; return p->gl.height; }
void Sprite::setOX(int value) { guardDisposed(); if (p->trans.getOrigin().x == value) return; p->trans.setOrigin(Vec2(value, getOY())); }
void Sprite::setOY(int value) { guardDisposed(); if (p->trans.getOrigin().y == value) return; p->trans.setOrigin(Vec2(getOX(), value)); }
int Bitmap::width() const { guardDisposed(); if (p->megaSurface) return p->megaSurface->w; return p->gl.width; }
/* Flashable */ void Sprite::update() { guardDisposed(); Flashable::update(); p->wave.phase += p->wave.speed / 180; p->wave.dirty = true; }
void Sprite::setAngle(float value) { guardDisposed(); if (p->trans.getRotation() == value) return; p->trans.setRotation(value); }
void Sprite::setZoomX(float value) { guardDisposed(); if (p->trans.getScale().x == value) return; p->trans.setScale(Vec2(value, getZoomY())); }
void WindowVX::setOpenness(int value) { guardDisposed(); if (p->openness == value) return; p->openness = value; p->updateBaseQuad(); }
void WindowVX::setContentsOpacity(int value) { guardDisposed(); if (p->contentsOpacity == value) return; p->contentsOpacity = value; p->contentsQuad.setColor(Vec4(1, 1, 1, p->contentsOpacity.norm)); }
void WindowVX::setBackOpacity(int value) { guardDisposed(); if (p->backOpacity == value) return; p->backOpacity = value; p->base.texDirty = true; }
void WindowVX::setOpacity(int value) { guardDisposed(); if (p->opacity == value) return; p->opacity = value; p->base.quad.setColor(Vec4(1, 1, 1, p->opacity.norm)); }
void Plane::setOY(int value) { guardDisposed(); if (p->oy == value) return; p->oy = value; p->quadSourceDirty = true; }
void Bitmap::clearRect(const IntRect &rect) { guardDisposed(); GUARD_MEGA; p->fillRect(rect, Vec4()); p->onModified(); }
void WindowVX::setWindowskin(Bitmap *value) { guardDisposed(); if (p->windowskin == value) return; p->windowskin = value; p->base.texDirty = true; }
void Plane::setZoomY(float value) { guardDisposed(); if (p->zoomY == value) return; p->zoomY = value; p->quadSourceDirty = true; }
void WindowVX::setArrowsVisible(bool value) { guardDisposed(); if (p->arrowsVisible == value) return; p->arrowsVisible = value; p->ctrlVertDirty = true; }
void WindowVX::setPaddingBottom(int value) { guardDisposed(); if (p->paddingBottom == value) return; p->paddingBottom = value; p->clipRectDirty = true; }
void Viewport::setOY(int value) { guardDisposed(); if (geometry.orig.y == value) return; geometry.orig.y = value; notifyGeometryChange(); }
void Sprite::setMirror(bool mirrored) { guardDisposed(); if (p->mirrored == mirrored) return; p->mirrored = mirrored; p->onSrcRectChange(); }
void Sprite::setBushDepth(int value) { guardDisposed(); if (p->bushDepth == value) return; p->bushDepth = value; p->recomputeBushDepth(); }
void WindowVX::setOX(int value) { guardDisposed(); if (p->contentsOff.x == value) return; p->contentsOff.x = value; p->ctrlVertDirty = true; }
void Plane::setBitmap(Bitmap *value) { guardDisposed(); p->bitmap = value; if (!value) return; value->ensureNonMega(); }
void WindowVX::setActive(bool value) { guardDisposed(); if (p->active == value) return; p->active = value; p->cursorAlphaIdx = cursorAlphaResetIdx; p->updateCursorAlpha(); }
void WindowVX::setPause(bool value) { guardDisposed(); if (p->pause == value) return; p->pause = value; p->pauseAlphaIdx = 0; p->pauseQuadIdx = 0; p->ctrlVertDirty = true; }
void Sprite::setZoomY(float value) { guardDisposed(); if (p->trans.getScale().y == value) return; p->trans.setScale(Vec2(getZoomX(), value)); p->recomputeBushDepth(); if (rgssVer >= 2) p->wave.dirty = true; }
void WindowVX::move(int x, int y, int width, int height) { guardDisposed(); p->width = width; p->height = height; const Vec2i size(std::max(0, width), std::max(0, height)); if (p->geo.w != size.x || p->geo.h != size.y) p->base.texSizeDirty = true; p->geo = IntRect(x, y, size.x, size.y); p->updateBaseQuad(); }
void Sprite::setY(int value) { guardDisposed(); if (p->trans.getPosition().y == value) return; p->trans.setPosition(Vec2(getX(), value)); if (rgssVer >= 2) { p->wave.dirty = true; setSpriteY(value); } }
void WindowVX::setHeight(int value) { guardDisposed(); if (p->height == value) return; p->height = value; p->geo.h = std::max(0, value); p->base.vertDirty = true; p->base.texSizeDirty = true; p->clipRectDirty = true; p->ctrlVertDirty = true; p->updateBaseQuad(); }