Commit cb3cb408 authored by Michele Bosi's avatar Michele Bosi

Vivid: flip image to reflect MITK conventions

parent 6b08081c
......@@ -97,11 +97,14 @@ VividRenderer::VividRenderer(VividRendering* vivid_rendering)
mBackgroundQuad->setVertexArray( bgq_vert2.get() );
ref<ArrayFloat2> bgq_tex = new ArrayFloat2;
bgq_tex->resize( 4 );
// 1---2 image-top
// | |
// 0---3 image-bottom
const GLfloat tex_coords[] = {
0.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f,
1.0f, 1.0f,
0.0f, 1.0f,
};
memcpy( bgq_tex->ptr(), tex_coords, bgq_tex->bytesUsed() );
mBackgroundQuad->setTexCoordArray( 0, bgq_tex.get() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment