Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image is still back-to-front/mirror-inverted #1

Open
FUSAKLA opened this issue Jun 21, 2015 · 1 comment
Open

image is still back-to-front/mirror-inverted #1

FUSAKLA opened this issue Jun 21, 2015 · 1 comment

Comments

@FUSAKLA
Copy link

FUSAKLA commented Jun 21, 2015

I played a little with the code and this works for me:

static float squareVertices[] = { -1.0f, 1.0f, -1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f };
private short drawOrder[] = { 0, 3, 2, 0, 1, 2 }; // order to draw vertices
static float textureVertices[] = { 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, };

I just changed order of vertexes for stripe and texture coordinates.

@chauthai
Copy link
Owner

Hi FUSAKLA,

nice! I will try it out later. Can you create a pull request for your changes?

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants