[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/contextview
From: Mark Kretschmann <kretschmann () kde ! org>
Date: 2007-07-11 8:29:34
Message-ID: 1184142574.163420.12944.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 686403 by markey:
Reflection now has smooth alpha channel fading, and I made the floor more colorful. Pink Ponies, OMG!
M +22 -5 CoverBling.cpp
--- trunk/extragear/multimedia/amarok/src/contextview/CoverBling.cpp #686402:686403
@@ -112,11 +112,15 @@
//draw the ground
glBegin( GL_POLYGON );
+ //glColor3f( 0.0, 0.0, 0.5 );
+
glColor3f( 0.0, 0.0, 0.5 );
-
glVertex3f (-2.0, -1.0, -2.0);
+ glColor3f( 1.0, 0.0, 0.5 );
glVertex3f (2.0, -1.0, -2.0);
+ glColor3f( 0.0, 1.0, 0.5 );
glVertex3f (2.0, -1.0, 2.0);
+ glColor3f( 0.0, 0.0, 1.5 );
glVertex3f (-2.0, -1.0, 2.0);
glEnd();
@@ -134,18 +138,31 @@
glTranslatef( 0.0, -2.0, 0.0 );
glScalef( 1.0, -1.0, 1.0 );
- glColor3f( 0.4, 0.4, 0.4 );
glEnable( GL_BLEND );
glDepthMask( GL_FALSE );
- glBlendFunc( GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR );
- //glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
+ //glBlendFunc( GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR );
+ glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
- glCallList( m_texturedRectList );
+ glBegin (GL_QUADS);
+ glTexCoord2f (0.0, 0.0);
+ glColor4f( 1.0, 1.0, 1.0, 0.3 );
+ glVertex3f (-1.0, -1.0, -1.0);
+ glColor4f( 1.0, 1.0, 1.0, 0.3 );
+ glTexCoord2f (1.0, 0.0);
+ glVertex3f (1.0, -1.0, -1.0);
+ glColor4f( 1.0, 1.0, 1.0, 0.02 );
+ glTexCoord2f (1.0, 1.0);
+ glVertex3f (1.0, 1.0, -1.0);
+ glColor4f( 1.0, 1.0, 1.0, 0.02 );
+ glTexCoord2f (0.0, 1.0);
+ glVertex3f (-1.0, 1.0, -1.0);
+ glEnd ();
glDepthMask( GL_TRUE );
glDisable( GL_BLEND );
glPopMatrix();
+ glColor4f( 1.0, 1.0, 1.0, 1.0 );
glDisable( GL_TEXTURE_2D);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic