summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicevisualizer.cpp
diff options
context:
space:
mode:
authorBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
committerBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
commit6d52efe452aa8469e0343da1c7d108f3f52ab651 (patch)
treea87be48e9840d7fc1f7ee514d7c7f994e71fdb3c /indra/newview/llvoicevisualizer.cpp
parent6027ad2630b8650cabcf00628ee9b0d25bedd67f (diff)
Merge of windlight into release (QAR-286). This includes all changes in
windlight14 which have passed QA (up through r79932). svn merge -r 80831:80833 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge_windlight14_r80620
Diffstat (limited to 'indra/newview/llvoicevisualizer.cpp')
-rw-r--r--indra/newview/llvoicevisualizer.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/indra/newview/llvoicevisualizer.cpp b/indra/newview/llvoicevisualizer.cpp
index 96026c58ba..8d813f47aa 100644
--- a/indra/newview/llvoicevisualizer.cpp
+++ b/indra/newview/llvoicevisualizer.cpp
@@ -45,6 +45,7 @@
#include "llviewerimage.h"
#include "llviewerimagelist.h"
#include "llvoiceclient.h"
+#include "llglimmediate.h"
//brent's wave image
//29de489d-0491-fb00-7dab-f9e686d31e83
@@ -197,7 +198,6 @@ void LLVoiceVisualizer::render()
//---------------------------------------------------------------
// some gl state
//---------------------------------------------------------------
- LLGLEnable tex( GL_TEXTURE_2D );
LLGLEnable blend( GL_BLEND );
//-------------------------------------------------------------
@@ -219,19 +219,19 @@ void LLVoiceVisualizer::render()
//-------------------------------------------------------------
// now render the dot
//-------------------------------------------------------------
- glColor4fv( LLColor4( 1.0f, 1.0f, 1.0f, DOT_OPACITY ).mV );
+ gGL.color4fv( LLColor4( 1.0f, 1.0f, 1.0f, DOT_OPACITY ).mV );
- glBegin( GL_TRIANGLE_STRIP );
- glTexCoord2i( 0, 0 ); glVertex3fv( bottomLeft.mV );
- glTexCoord2i( 1, 0 ); glVertex3fv( bottomRight.mV );
- glTexCoord2i( 0, 1 ); glVertex3fv( topLeft.mV );
- glEnd();
-
- glBegin( GL_TRIANGLE_STRIP );
- glTexCoord2i( 1, 0 ); glVertex3fv( bottomRight.mV );
- glTexCoord2i( 1, 1 ); glVertex3fv( topRight.mV );
- glTexCoord2i( 0, 1 ); glVertex3fv( topLeft.mV );
- glEnd();
+ gGL.begin( GL_TRIANGLE_STRIP );
+ gGL.texCoord2i( 0, 0 ); gGL.vertex3fv( bottomLeft.mV );
+ gGL.texCoord2i( 1, 0 ); gGL.vertex3fv( bottomRight.mV );
+ gGL.texCoord2i( 0, 1 ); gGL.vertex3fv( topLeft.mV );
+ gGL.end();
+
+ gGL.begin( GL_TRIANGLE_STRIP );
+ gGL.texCoord2i( 1, 0 ); gGL.vertex3fv( bottomRight.mV );
+ gGL.texCoord2i( 1, 1 ); gGL.vertex3fv( topRight.mV );
+ gGL.texCoord2i( 0, 1 ); gGL.vertex3fv( topLeft.mV );
+ gGL.end();
@@ -338,23 +338,23 @@ void LLVoiceVisualizer::render()
LLVector3 topLeft = mSoundSymbol.mPosition + l + u;
LLVector3 topRight = mSoundSymbol.mPosition - l + u;
- glColor4fv( LLColor4( red, green, blue, mSoundSymbol.mWaveOpacity[i] ).mV );
+ gGL.color4fv( LLColor4( red, green, blue, mSoundSymbol.mWaveOpacity[i] ).mV );
mSoundSymbol.mTexture[i]->bind();
//---------------------------------------------------
// now, render the mofo
//---------------------------------------------------
- glBegin( GL_TRIANGLE_STRIP );
- glTexCoord2i( 0, 0 ); glVertex3fv( bottomLeft.mV );
- glTexCoord2i( 1, 0 ); glVertex3fv( bottomRight.mV );
- glTexCoord2i( 0, 1 ); glVertex3fv( topLeft.mV );
- glEnd();
-
- glBegin( GL_TRIANGLE_STRIP );
- glTexCoord2i( 1, 0 ); glVertex3fv( bottomRight.mV );
- glTexCoord2i( 1, 1 ); glVertex3fv( topRight.mV );
- glTexCoord2i( 0, 1 ); glVertex3fv( topLeft.mV );
- glEnd();
+ gGL.begin( GL_TRIANGLE_STRIP );
+ gGL.texCoord2i( 0, 0 ); gGL.vertex3fv( bottomLeft.mV );
+ gGL.texCoord2i( 1, 0 ); gGL.vertex3fv( bottomRight.mV );
+ gGL.texCoord2i( 0, 1 ); gGL.vertex3fv( topLeft.mV );
+ gGL.end();
+
+ gGL.begin( GL_TRIANGLE_STRIP );
+ gGL.texCoord2i( 1, 0 ); gGL.vertex3fv( bottomRight.mV );
+ gGL.texCoord2i( 1, 1 ); gGL.vertex3fv( topRight.mV );
+ gGL.texCoord2i( 0, 1 ); gGL.vertex3fv( topLeft.mV );
+ gGL.end();
} //if ( mSoundSymbol.mWaveActive[i] )