GLStruct.h 433 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include "GL/gl.h"
  8. namespace GL {
  9. struct GLColor {
  10. GLclampf r, g, b, a;
  11. };
  12. struct GLVertex {
  13. GLfloat x, y, z, w;
  14. GLfloat r, g, b, a;
  15. GLfloat u, v;
  16. };
  17. struct GLTriangle {
  18. GLVertex vertices[3];
  19. };
  20. struct GLEdge {
  21. GLfloat x1;
  22. GLfloat y1;
  23. GLfloat x2;
  24. GLfloat y2;
  25. };
  26. }