ladybird/Userland/Libraries/LibSoftGPU/Vertex.h
Stephan Unverwerth 7571ef0343 LibGL+LibSoftGPU: Add multiple texture coordinates to vertex struct
We now have one set of texture coordinates per texture unit.
Texture coordinate generation and texture coordinate assignment is
currently only stubbed. This will be rectified in another commit.
2022-01-19 19:57:49 +01:00

27 lines
584 B
C++

/*
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Array.h>
#include <LibGfx/Vector3.h>
#include <LibGfx/Vector4.h>
#include <LibSoftGPU/Config.h>
namespace SoftGPU {
struct Vertex {
FloatVector4 position;
FloatVector4 eye_coordinates;
FloatVector4 clip_coordinates;
FloatVector4 window_coordinates;
FloatVector4 color;
Array<FloatVector4, NUM_SAMPLERS> tex_coords;
FloatVector3 normal;
};
}