diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llface.inl | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llface.inl')
-rw-r--r-- | linden/indra/newview/llface.inl | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/linden/indra/newview/llface.inl b/linden/indra/newview/llface.inl index 2cb1654..8f8cfaf 100644 --- a/linden/indra/newview/llface.inl +++ b/linden/indra/newview/llface.inl | |||
@@ -69,87 +69,6 @@ inline LLViewerObject* LLFace::getViewerObject() const | |||
69 | return mVObjp; | 69 | return mVObjp; |
70 | } | 70 | } |
71 | 71 | ||
72 | |||
73 | |||
74 | inline S32 LLFace::getVertices(LLStrider<LLVector3> &vertices) | ||
75 | { | ||
76 | if (!mGeomCount) | ||
77 | { | ||
78 | return -1; | ||
79 | } | ||
80 | if (isState(BACKLIST)) | ||
81 | { | ||
82 | if (!mBackupMem) | ||
83 | { | ||
84 | printDebugInfo(); | ||
85 | llerrs << "No backup memory for face" << llendl; | ||
86 | } | ||
87 | vertices = (LLVector3*)(mBackupMem + (4 * mIndicesCount) + mDrawPoolp->mDataOffsets[LLDrawPool::DATA_VERTICES]); | ||
88 | vertices.setStride( mDrawPoolp->getStride()); | ||
89 | return 0; | ||
90 | } | ||
91 | else | ||
92 | { | ||
93 | llassert(mGeomIndex >= 0); | ||
94 | mDrawPoolp->getVertexStrider(vertices, mGeomIndex); | ||
95 | mDrawPoolp->setDirty(); | ||
96 | return mGeomIndex; | ||
97 | } | ||
98 | } | ||
99 | |||
100 | inline S32 LLFace::getNormals(LLStrider<LLVector3> &normals) | ||
101 | { | ||
102 | if (!mGeomCount) | ||
103 | { | ||
104 | return -1; | ||
105 | } | ||
106 | if (isState(BACKLIST)) | ||
107 | { | ||
108 | if (!mBackupMem) | ||
109 | { | ||
110 | printDebugInfo(); | ||
111 | llerrs << "No backup memory for face" << llendl; | ||
112 | } | ||
113 | normals = (LLVector3*)(mBackupMem + (4 * mIndicesCount) + mDrawPoolp->mDataOffsets[LLDrawPool::DATA_NORMALS]); | ||
114 | normals.setStride( mDrawPoolp->getStride()); | ||
115 | return 0; | ||
116 | } | ||
117 | else | ||
118 | { | ||
119 | llassert(mGeomIndex >= 0); | ||
120 | mDrawPoolp->getNormalStrider(normals, mGeomIndex); | ||
121 | mDrawPoolp->setDirty(); | ||
122 | return mGeomIndex; | ||
123 | } | ||
124 | } | ||
125 | |||
126 | inline S32 LLFace::getBinormals(LLStrider<LLVector3> &binormals) | ||
127 | { | ||
128 | if (!mGeomCount) | ||
129 | { | ||
130 | return -1; | ||
131 | } | ||
132 | if (isState(BACKLIST)) | ||
133 | { | ||
134 | if (!mBackupMem) | ||
135 | { | ||
136 | printDebugInfo(); | ||
137 | llerrs << "No backup memory for face" << llendl; | ||
138 | } | ||
139 | binormals = (LLVector3*)(mBackupMem + (4 * mIndicesCount) + mDrawPoolp->mDataOffsets[LLDrawPool::DATA_BINORMALS]); | ||
140 | binormals.setStride( mDrawPoolp->getStride()); | ||
141 | return 0; | ||
142 | } | ||
143 | else | ||
144 | { | ||
145 | llassert(mGeomIndex >= 0); | ||
146 | mDrawPoolp->getBinormalStrider(binormals, mGeomIndex); | ||
147 | mDrawPoolp->setDirty(); | ||
148 | return mGeomIndex; | ||
149 | } | ||
150 | } | ||
151 | |||
152 | |||
153 | inline S32 LLFace::getColors (LLStrider<LLColor4U> &colors) | 72 | inline S32 LLFace::getColors (LLStrider<LLColor4U> &colors) |
154 | { | 73 | { |
155 | if (!mGeomCount) | 74 | if (!mGeomCount) |