static float vertices[] = {
// positions // colors
- 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.5f, // top right
- 0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.0f, // bottom right
- -0.5f, -0.5f, 0.0f, 0.5f, 0.0f, 0.5f, // bottom left
- -0.5f, 0.5f, 0.0f, 0.5f, 0.0f, 1.0f // top left
+ 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f, // top right
+ 0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 1.0f, // bottom right
+ -0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 1.0f, // bottom left
+ -0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f // top left
};
static unsigned int indices[] = {