diff options
Diffstat (limited to 'indra/newview/llface.inl')
-rw-r--r-- | indra/newview/llface.inl | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/indra/newview/llface.inl b/indra/newview/llface.inl index 71f0638d45..aa94493196 100644 --- a/indra/newview/llface.inl +++ b/indra/newview/llface.inl @@ -69,87 +69,6 @@ inline LLViewerObject* LLFace::getViewerObject() const return mVObjp; } - - -inline S32 LLFace::getVertices(LLStrider<LLVector3> &vertices) -{ - if (!mGeomCount) - { - return -1; - } - if (isState(BACKLIST)) - { - if (!mBackupMem) - { - printDebugInfo(); - llerrs << "No backup memory for face" << llendl; - } - vertices = (LLVector3*)(mBackupMem + (4 * mIndicesCount) + mDrawPoolp->mDataOffsets[LLDrawPool::DATA_VERTICES]); - vertices.setStride( mDrawPoolp->getStride()); - return 0; - } - else - { - llassert(mGeomIndex >= 0); - mDrawPoolp->getVertexStrider(vertices, mGeomIndex); - mDrawPoolp->setDirty(); - return mGeomIndex; - } -} - -inline S32 LLFace::getNormals(LLStrider<LLVector3> &normals) -{ - if (!mGeomCount) - { - return -1; - } - if (isState(BACKLIST)) - { - if (!mBackupMem) - { - printDebugInfo(); - llerrs << "No backup memory for face" << llendl; - } - normals = (LLVector3*)(mBackupMem + (4 * mIndicesCount) + mDrawPoolp->mDataOffsets[LLDrawPool::DATA_NORMALS]); - normals.setStride( mDrawPoolp->getStride()); - return 0; - } - else - { - llassert(mGeomIndex >= 0); - mDrawPoolp->getNormalStrider(normals, mGeomIndex); - mDrawPoolp->setDirty(); - return mGeomIndex; - } -} - -inline S32 LLFace::getBinormals(LLStrider<LLVector3> &binormals) -{ - if (!mGeomCount) - { - return -1; - } - if (isState(BACKLIST)) - { - if (!mBackupMem) - { - printDebugInfo(); - llerrs << "No backup memory for face" << llendl; - } - binormals = (LLVector3*)(mBackupMem + (4 * mIndicesCount) + mDrawPoolp->mDataOffsets[LLDrawPool::DATA_BINORMALS]); - binormals.setStride( mDrawPoolp->getStride()); - return 0; - } - else - { - llassert(mGeomIndex >= 0); - mDrawPoolp->getBinormalStrider(binormals, mGeomIndex); - mDrawPoolp->setDirty(); - return mGeomIndex; - } -} - - inline S32 LLFace::getColors (LLStrider<LLColor4U> &colors) { if (!mGeomCount) |