Define the function that creates a subwindow in OpenGL? Also write a program by using OpenGL libraries to draw a triangle filled with different colors.
Please fix the following input errors: