2015-08-13, 15:20
If I understood correctly what I've googled and you just told me, this is the reason why I get the segfaults and gpu hangs.
However, I have no idea on how I'd fix that (mainly because I lake the understanding of that stuff ^^).
I started porting the pure SOIL part over to kodi and I finally see an image!! Wuhuuu!! (however the SOIL_FLAG_INVERT_Y doesn't seem to work meaning the picture is upside down right now. within my glut-project thing it does work.. very strange :/)
but one could call that progress
Edit:
So using glut, while drawing the area/texture, I can just do this:
Note the glVertex2f with its values.
This will result in the image scaling/resizing pending on the window size. I can however also specify a real resolution.
Doing same thing on kodi just doesn't work. With Kodi I do have to specify the width and height in pixel (which I obviously don't want).
Does anyone know why that is? Or am I doing something wrong?
However, I have no idea on how I'd fix that (mainly because I lake the understanding of that stuff ^^).
I started porting the pure SOIL part over to kodi and I finally see an image!! Wuhuuu!! (however the SOIL_FLAG_INVERT_Y doesn't seem to work meaning the picture is upside down right now. within my glut-project thing it does work.. very strange :/)
but one could call that progress
Edit:
So using glut, while drawing the area/texture, I can just do this:
Code:
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.0f); glVertex2f(-1.0f, -1.0f);
glTexCoord2f(1.0f, 0.0f); glVertex2f(1.0f, -1.0f);
glTexCoord2f(1.0f, 1.0f); glVertex2f(1.0f, 1.0f);
glTexCoord2f(0.0f, 1.0f); glVertex2f(-1.0f, 1.0f);
glEnd();
This will result in the image scaling/resizing pending on the window size. I can however also specify a real resolution.
Doing same thing on kodi just doesn't work. With Kodi I do have to specify the width and height in pixel (which I obviously don't want).
Does anyone know why that is? Or am I doing something wrong?