const float vertices[] = { // position 0.5f, -0.5f, 0.0f, // bottom right -0.5f, -0.5f, 0.0f, // bottom left 0.0f, 0.5f, 0.0f, // top // color 1.0f, 0.0f, 0.0f, // bottom right 0.0f, 1.0f, 0.0f, // bottom left 0.0f, 0.0f, 1.0f // top };