Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualEnder1618

Posted 04 April 2013 - 11:18 AM

mhaigan, you mention using glTexStorage2D with GL_RGBA8 and glTexSubImage2D with GL_BGRA.  What does it mean that these are different?

 

What is the difference between glTexStorage2D and glTexImage2D? The docs mention mostly things about mipmap generation, I dont need mipmaps.

 

I also notice that

 

glTexSubImage2D(GL_TEXTURE_2D,0,0,0,width,height,GL_BGR,GL_UNSIGNED_INT_8_8_8_8_REV,data);

 

will fail, so I would have to do:

 

glTexSubImage2D(GL_TEXTURE_2D,0,0,0,width,height,GL_BGR,GL_UNSIGNED_BYTE,data);

 

for it to work, so is that to say that I must convert my RGB to BGRA so that I could use GL_UNSIGNED_INT_8_8_8_8_REV? Since there is no GL_UNSIGNED_INT_8_8_8_REV.


#5Ender1618

Posted 04 April 2013 - 11:18 AM

mhaigan, you mention using glTexStorage2D with GL_RGBA8 and glTexSubImage2D with GL_BGRA.  What does it mean that these are different?

 

What is the difference between glTexStorage2D and glTexImage2D? The docs mention mostly things about mipmap generation, I dont need mipmaps.

 

I also notice that

 

glTexSubImage2D(GL_TEXTURE_2D,0,0,0,width,height,GL_BGR,GL_UNSIGNED_INT_8_8_8_8_REV,data);

 

will fail, so I would have to do:

 

glTexSubImage2D(GL_TEXTURE_2D,0,0,0,width,height,GL_BGR,GL_UNSIGNED_BYTE,data);

 

for it to work, so is that to say that I must convert by RGB to BGRA so that I could use GL_UNSIGNED_INT_8_8_8_8_REV? Since there is no GL_UNSIGNED_INT_8_8_8_REV.


#4Ender1618

Posted 04 April 2013 - 10:05 AM

mhaigan, you mention using glTexStorage2D with GL_RGBA8 and glTexSubImage2D with GL_BGRA.  What does it mean that these are different?

 

What is the difference between glTexStorage2D and glTexImage2D? The docs mention mostly things about mipmap generation, I dont need mipmaps.


#3Ender1618

Posted 04 April 2013 - 10:05 AM

mhaigan, you mention using glTexStorage2D with GL_RGBA8 and glTexSubImage2D with GL_BGRA8.  What does it mean that these are different?

 

What is the difference between glTexStorage2D and glTexImage2D? The docs mention mostly things about mipmap generation, I dont need mipmaps.


#2Ender1618

Posted 04 April 2013 - 09:48 AM

mhaigan, you mention using glTexStorage2D with GL_RGBA and glTexSubImage2D with GL_BGRA8.  What does it mean that these are different?

 

What is the difference between glTexStorage2D and glTexImage2D? The docs mention mostly things about mipmap generation, I dont need mipmaps.


#1Ender1618

Posted 04 April 2013 - 09:41 AM

mhaigan, you mention using glTexStorage2D with GL_RGBA and glTexSubImage2D with GL_BGRA8.  What does it mean that these are different?


PARTNERS