Vertex.h 509 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
  3. * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibGfx/Vector3.h>
  9. #include <LibGfx/Vector4.h>
  10. namespace SoftGPU {
  11. struct Vertex {
  12. FloatVector4 position;
  13. FloatVector4 eye_coordinates;
  14. FloatVector4 clip_coordinates;
  15. FloatVector4 window_coordinates;
  16. FloatVector4 color;
  17. FloatVector4 tex_coord;
  18. FloatVector3 normal;
  19. };
  20. }