Draw Triangle object with single or separate attribute arrays.
Yellow square using BufferObjects (Array and Element).
Don’t forget unbind buffers after using. (Clean after using:))
Gold square:)