Hi
how to set image alpha value as below?
Many thanks
const void* pixels = image.pixels.empty() ? NULL : &image.pixels[0];
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, image.width, image.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more