[DEV] add at the impage compositing the Z position

This commit is contained in:
Edouard DUPIN 2013-09-05 21:21:17 +02:00
parent d010c5ec2d
commit 0d4cd4749b
2 changed files with 3 additions and 4 deletions

2
external/ege vendored

@ -1 +1 @@
Subproject commit 7f28ae22f21f223ff8f6776af70189f86ae715a8
Subproject commit 274ad28f95c936d4fbc1e3843c14668b71be2024

View File

@ -68,6 +68,7 @@ void ewol::Image::Draw(void)
EWOL_ERROR("No shader ...");
return;
}
ewol::openGL::Disable(ewol::openGL::FLAG_DEPTH_TEST);
// set Matrix : translation/positionMatrix
mat4 tmpMatrix = ewol::openGL::GetMatrix()*m_matrixApply;
m_GLprogram->Use();
@ -144,11 +145,9 @@ void ewol::Image::PrintPart(const vec2& _size,
const vec2& _sourcePosStop)
{
if (m_angle==0.0f) {
vec3 point(0,0,0);
vec3 point = m_position;
vec2 tex(_sourcePosStart.x(),_sourcePosStop.y());
point.setX(m_position.x());
point.setY(m_position.y());
m_coord.PushBack(point);
m_coordTex.PushBack(tex);
m_coordColor.PushBack(m_color);