texture error position ==> need horizontal miror
This commit is contained in:
parent
771ab20f62
commit
eb5ed16eb4
@ -95,7 +95,7 @@ void ewol::OObject2DTextured::Rectangle(float x, float y, float w, float h, floa
|
|||||||
Vector2D<float> point;
|
Vector2D<float> point;
|
||||||
texCoord_ts tex;
|
texCoord_ts tex;
|
||||||
|
|
||||||
tex.u = texSX;
|
tex.u = texX;
|
||||||
tex.v = texSY;
|
tex.v = texSY;
|
||||||
point.x = x;
|
point.x = x;
|
||||||
point.y = y;
|
point.y = y;
|
||||||
@ -104,7 +104,7 @@ void ewol::OObject2DTextured::Rectangle(float x, float y, float w, float h, floa
|
|||||||
m_coordColor.PushBack(tmpColor);
|
m_coordColor.PushBack(tmpColor);
|
||||||
|
|
||||||
|
|
||||||
tex.u = texX;
|
tex.u = texSX;
|
||||||
tex.v = texSY;
|
tex.v = texSY;
|
||||||
point.x = x + w;
|
point.x = x + w;
|
||||||
point.y = y;
|
point.y = y;
|
||||||
@ -113,7 +113,7 @@ void ewol::OObject2DTextured::Rectangle(float x, float y, float w, float h, floa
|
|||||||
m_coordColor.PushBack(tmpColor);
|
m_coordColor.PushBack(tmpColor);
|
||||||
|
|
||||||
|
|
||||||
tex.u = texX;
|
tex.u = texSX;
|
||||||
tex.v = texY;
|
tex.v = texY;
|
||||||
point.x = x + w;
|
point.x = x + w;
|
||||||
point.y = y + h;
|
point.y = y + h;
|
||||||
@ -125,7 +125,7 @@ void ewol::OObject2DTextured::Rectangle(float x, float y, float w, float h, floa
|
|||||||
m_coordTex.PushBack(tex);
|
m_coordTex.PushBack(tex);
|
||||||
m_coordColor.PushBack(tmpColor);
|
m_coordColor.PushBack(tmpColor);
|
||||||
|
|
||||||
tex.u = texSX;
|
tex.u = texX;
|
||||||
tex.v = texY;
|
tex.v = texY;
|
||||||
point.x = x;
|
point.x = x;
|
||||||
point.y = y + h;
|
point.y = y + h;
|
||||||
@ -133,7 +133,7 @@ void ewol::OObject2DTextured::Rectangle(float x, float y, float w, float h, floa
|
|||||||
m_coordTex.PushBack(tex);
|
m_coordTex.PushBack(tex);
|
||||||
m_coordColor.PushBack(tmpColor);
|
m_coordColor.PushBack(tmpColor);
|
||||||
|
|
||||||
tex.u = texSX;
|
tex.u = texX;
|
||||||
tex.v = texSY;
|
tex.v = texSY;
|
||||||
point.x = x;
|
point.x = x;
|
||||||
point.y = y;
|
point.y = y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user