OpenGL: i'm using GL_TEXTURE_2D_ARRAY

Hello, everyone

I am programming a console emulator using Juce for the GUI. I came up with the need to use a texture of type GL_TEXTURE_2D_ARRAY, as the seemingly best solution to manage a few hundred small tiles in a single texture.

However, GL_TEXTURE_2D_ARRAY does not seem to be defined anywhere. Is there any way to bind textures of type GL_TEXTURE_2D_ARRAY with Juce? If possible, I would like to do it without adding any more dependencies (GLEW, etc) to the project.

Thanks for any tip that could help solve the issue!


I think this value should be defined in the juce::gl namespace. You can either write juce::gl::GL_TEXTURE_2D_ARRAY explicitly, or use using namespace juce::gl (in as small a scope as possible) to make the symbol visible.