mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
LibGL+LibSoftGPU: Move Vertex and Triangle structs to LibSoftGPU
This commit is contained in:
parent
73ba208ee7
commit
251f3c007f
9 changed files with 68 additions and 36 deletions
22
Userland/Libraries/LibSoftGPU/Vertex.h
Normal file
22
Userland/Libraries/LibSoftGPU/Vertex.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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 <LibGfx/Vector3.h>
|
||||
#include <LibGfx/Vector4.h>
|
||||
|
||||
namespace SoftGPU {
|
||||
|
||||
struct Vertex {
|
||||
FloatVector4 position;
|
||||
FloatVector4 color;
|
||||
FloatVector4 tex_coord;
|
||||
FloatVector3 normal;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue