GL: transparency ok in all layer of OpenGL

This commit is contained in:
Edouard Dupin 2011-10-24 17:30:13 +02:00
parent b4bae1a447
commit d045cf8259
2 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ void ewol::OObject2DColored::Draw(void)
glColorPointer(4, GL_FLOAT, 0, &m_coordColor[0] );
// Render : draw all of the triangles at once
glDrawArrays( GL_TRIANGLES, 0, m_coord.Size());
//glDrawElements( GL_TRIANGLES, 0, m_coord.Size());
//EWOL_DEBUG("Draw ..." << m_coord.Size()/3 << " triangle(s)");
// Disable Pointers

View File

@ -56,6 +56,10 @@ void ewol::Windows::SysDraw(void)
glLoadIdentity();
glTranslatef(0, 0, -5);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
static bool initDone = false;
static GLuint indexListe;