GL: transparency ok in all layer of OpenGL
This commit is contained in:
parent
b4bae1a447
commit
d045cf8259
@ -46,6 +46,7 @@ void ewol::OObject2DColored::Draw(void)
|
|||||||
glColorPointer(4, GL_FLOAT, 0, &m_coordColor[0] );
|
glColorPointer(4, GL_FLOAT, 0, &m_coordColor[0] );
|
||||||
// Render : draw all of the triangles at once
|
// Render : draw all of the triangles at once
|
||||||
glDrawArrays( GL_TRIANGLES, 0, m_coord.Size());
|
glDrawArrays( GL_TRIANGLES, 0, m_coord.Size());
|
||||||
|
//glDrawElements( GL_TRIANGLES, 0, m_coord.Size());
|
||||||
//EWOL_DEBUG("Draw ..." << m_coord.Size()/3 << " triangle(s)");
|
//EWOL_DEBUG("Draw ..." << m_coord.Size()/3 << " triangle(s)");
|
||||||
|
|
||||||
// Disable Pointers
|
// Disable Pointers
|
||||||
|
@ -55,6 +55,10 @@ void ewol::Windows::SysDraw(void)
|
|||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
glTranslatef(0, 0, -5);
|
glTranslatef(0, 0, -5);
|
||||||
|
|
||||||
|
glEnable(GL_BLEND);
|
||||||
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static bool initDone = false;
|
static bool initDone = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user