void LLTextureEntry::asLLSD(LLSD& sd) const { sd["imageid"] = mID; sd["colors"] = ll_sd_from_color4(mColor); sd["scales"] = mScaleS; sd["scalet"] = mScaleT; sd["offsets"] = mOffsetS; sd["offsett"] = mOffsetT; sd["imagerot"] = mRotation; sd["bump"] = getBumpShiny(); sd["fullbright"] = getFullbright(); sd["media_flags"] = mMediaFlags; #ifdef MEDIA_ON_PRIM if (hasMedia()) { LLSD mediaData; if (NULL != getMediaData()) { getMediaData()->asLLSD(mediaData); } sd[TEXTURE_MEDIA_DATA_KEY] = mediaData; } #endif sd["glow"] = mGlow; }
void PullStream::needData() { const QByteArray data = getMediaData(); if (data.isEmpty()) { endOfData(); } else { writeData(data); } }