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/llvoicevisualizer.cpp | |
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 '')
-rw-r--r-- | linden/indra/newview/llvoicevisualizer.cpp | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/linden/indra/newview/llvoicevisualizer.cpp b/linden/indra/newview/llvoicevisualizer.cpp index c931734..0046ae0 100644 --- a/linden/indra/newview/llvoicevisualizer.cpp +++ b/linden/indra/newview/llvoicevisualizer.cpp | |||
@@ -45,6 +45,7 @@ | |||
45 | #include "llviewerimage.h" | 45 | #include "llviewerimage.h" |
46 | #include "llviewerimagelist.h" | 46 | #include "llviewerimagelist.h" |
47 | #include "llvoiceclient.h" | 47 | #include "llvoiceclient.h" |
48 | #include "llglimmediate.h" | ||
48 | 49 | ||
49 | //brent's wave image | 50 | //brent's wave image |
50 | //29de489d-0491-fb00-7dab-f9e686d31e83 | 51 | //29de489d-0491-fb00-7dab-f9e686d31e83 |
@@ -197,7 +198,6 @@ void LLVoiceVisualizer::render() | |||
197 | //--------------------------------------------------------------- | 198 | //--------------------------------------------------------------- |
198 | // some gl state | 199 | // some gl state |
199 | //--------------------------------------------------------------- | 200 | //--------------------------------------------------------------- |
200 | LLGLEnable tex( GL_TEXTURE_2D ); | ||
201 | LLGLEnable blend( GL_BLEND ); | 201 | LLGLEnable blend( GL_BLEND ); |
202 | 202 | ||
203 | //------------------------------------------------------------- | 203 | //------------------------------------------------------------- |
@@ -219,19 +219,19 @@ void LLVoiceVisualizer::render() | |||
219 | //------------------------------------------------------------- | 219 | //------------------------------------------------------------- |
220 | // now render the dot | 220 | // now render the dot |
221 | //------------------------------------------------------------- | 221 | //------------------------------------------------------------- |
222 | glColor4fv( LLColor4( 1.0f, 1.0f, 1.0f, DOT_OPACITY ).mV ); | 222 | gGL.color4fv( LLColor4( 1.0f, 1.0f, 1.0f, DOT_OPACITY ).mV ); |
223 | 223 | ||
224 | glBegin( GL_TRIANGLE_STRIP ); | 224 | gGL.begin( GL_TRIANGLE_STRIP ); |
225 | glTexCoord2i( 0, 0 ); glVertex3fv( bottomLeft.mV ); | 225 | gGL.texCoord2i( 0, 0 ); gGL.vertex3fv( bottomLeft.mV ); |
226 | glTexCoord2i( 1, 0 ); glVertex3fv( bottomRight.mV ); | 226 | gGL.texCoord2i( 1, 0 ); gGL.vertex3fv( bottomRight.mV ); |
227 | glTexCoord2i( 0, 1 ); glVertex3fv( topLeft.mV ); | 227 | gGL.texCoord2i( 0, 1 ); gGL.vertex3fv( topLeft.mV ); |
228 | glEnd(); | 228 | gGL.end(); |
229 | 229 | ||
230 | glBegin( GL_TRIANGLE_STRIP ); | 230 | gGL.begin( GL_TRIANGLE_STRIP ); |
231 | glTexCoord2i( 1, 0 ); glVertex3fv( bottomRight.mV ); | 231 | gGL.texCoord2i( 1, 0 ); gGL.vertex3fv( bottomRight.mV ); |
232 | glTexCoord2i( 1, 1 ); glVertex3fv( topRight.mV ); | 232 | gGL.texCoord2i( 1, 1 ); gGL.vertex3fv( topRight.mV ); |
233 | glTexCoord2i( 0, 1 ); glVertex3fv( topLeft.mV ); | 233 | gGL.texCoord2i( 0, 1 ); gGL.vertex3fv( topLeft.mV ); |
234 | glEnd(); | 234 | gGL.end(); |
235 | 235 | ||
236 | 236 | ||
237 | 237 | ||
@@ -338,23 +338,23 @@ void LLVoiceVisualizer::render() | |||
338 | LLVector3 topLeft = mSoundSymbol.mPosition + l + u; | 338 | LLVector3 topLeft = mSoundSymbol.mPosition + l + u; |
339 | LLVector3 topRight = mSoundSymbol.mPosition - l + u; | 339 | LLVector3 topRight = mSoundSymbol.mPosition - l + u; |
340 | 340 | ||
341 | glColor4fv( LLColor4( red, green, blue, mSoundSymbol.mWaveOpacity[i] ).mV ); | 341 | gGL.color4fv( LLColor4( red, green, blue, mSoundSymbol.mWaveOpacity[i] ).mV ); |
342 | mSoundSymbol.mTexture[i]->bind(); | 342 | mSoundSymbol.mTexture[i]->bind(); |
343 | 343 | ||
344 | //--------------------------------------------------- | 344 | //--------------------------------------------------- |
345 | // now, render the mofo | 345 | // now, render the mofo |
346 | //--------------------------------------------------- | 346 | //--------------------------------------------------- |
347 | glBegin( GL_TRIANGLE_STRIP ); | 347 | gGL.begin( GL_TRIANGLE_STRIP ); |
348 | glTexCoord2i( 0, 0 ); glVertex3fv( bottomLeft.mV ); | 348 | gGL.texCoord2i( 0, 0 ); gGL.vertex3fv( bottomLeft.mV ); |
349 | glTexCoord2i( 1, 0 ); glVertex3fv( bottomRight.mV ); | 349 | gGL.texCoord2i( 1, 0 ); gGL.vertex3fv( bottomRight.mV ); |
350 | glTexCoord2i( 0, 1 ); glVertex3fv( topLeft.mV ); | 350 | gGL.texCoord2i( 0, 1 ); gGL.vertex3fv( topLeft.mV ); |
351 | glEnd(); | 351 | gGL.end(); |
352 | 352 | ||
353 | glBegin( GL_TRIANGLE_STRIP ); | 353 | gGL.begin( GL_TRIANGLE_STRIP ); |
354 | glTexCoord2i( 1, 0 ); glVertex3fv( bottomRight.mV ); | 354 | gGL.texCoord2i( 1, 0 ); gGL.vertex3fv( bottomRight.mV ); |
355 | glTexCoord2i( 1, 1 ); glVertex3fv( topRight.mV ); | 355 | gGL.texCoord2i( 1, 1 ); gGL.vertex3fv( topRight.mV ); |
356 | glTexCoord2i( 0, 1 ); glVertex3fv( topLeft.mV ); | 356 | gGL.texCoord2i( 0, 1 ); gGL.vertex3fv( topLeft.mV ); |
357 | glEnd(); | 357 | gGL.end(); |
358 | 358 | ||
359 | } //if ( mSoundSymbol.mWaveActive[i] ) | 359 | } //if ( mSoundSymbol.mWaveActive[i] ) |
360 | 360 | ||
@@ -451,6 +451,7 @@ void LLVoiceVisualizer::markDead() | |||
451 | mVoiceEnabled = false; | 451 | mVoiceEnabled = false; |
452 | mSoundSymbol.mActive = false; | 452 | mSoundSymbol.mActive = false; |
453 | 453 | ||
454 | LLHUDEffect::markDead(); | ||
454 | }//------------------------------------------------------------------ | 455 | }//------------------------------------------------------------------ |
455 | 456 | ||
456 | 457 | ||