How do I render a color index into an RGB window or vice versa?
There isn’t a way to do this. However, you might consider opening an RGB window with a color index overlay plane, if it works in your application. If you have an array of color indices that you want to use as a texture map, you might want to consider using GL_EXT_paletted_texture, which lets an application specify a color index texture map with a color palette.