glteximage2d Questions
2
Solved
Related to my other question, I think the more central question would be, how you render a QImage with OpenGL?
I think the code has to look something like this, but I'm not sure what else I need, ...
Reinold asked 27/11, 2013 at 15:3
1
Solved
What is the difference between glBindImageTexture and glBindTexture? And also what is the difference between the following declarations in a shader:
layout (binding = 0, rgba32f) uniform image2D i...
Jetliner asked 10/5, 2016 at 11:9
1
Solved
I'm trying to upload a texture with unsigned shorts in a shader but it's not working.
I have tried the following:
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, vbt[1]);
glTexImage2D(...
Polychromatic asked 1/5, 2014 at 12:52
1
Solved
Are glTexImage2D and glTexSubImage2D the only ways to pass a buffer of pixels to a texture?
At the moment I use in a setup function glTexImage2D passing null as the buffer, and then on the render ...
Blather asked 25/3, 2012 at 20:55
3
Solved
If for example I create an array of pixels, like so:
int *getPixels()
{
int *pixels = new int[10];
pixels[0] = 1;
pixels[1] = 0;
pixels[1] = 1;
// etc...
}
glTexImage2D(..., getPixels());
...
Hemophilia asked 19/4, 2009 at 21:45
2
Solved
What is the difference between the two functions?
Any performance difference?
Thanks..
Jeniferjeniffer asked 9/3, 2010 at 0:9
1
What is the border value of glTexImage2D? It's either 0 or 1. Does it decide whether this texture will have a border or not?
Where is the border values set?
Everyone asked 27/5, 2009 at 3:24
1
© 2022 - 2024 — McMap. All rights reserved.