I’m learning about textures in the OpenGL environment. I see there’s no conventional way of acquiring the actual image data before passing it to video memory.
Out of curiosity, is it possible to create my own matrix of pixel data and fill it in with arbitrary information instead of actually reading a bitmap or an image file?
OpenGL doesn’t know what a file is. It has no idea about file image formats and so forth. It has no functions to load things from files into textures.
The various pixel transfer functions take pointer to memory (or buffer objects containing memory). How you generate that data is entirely up to you. You can load it from a file, create it from an algorithm, whatever you want to do.