mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
LibGL+LibGPU+LibSoftGPU: Move Enums.h to LibGPU
This commit is contained in:
parent
ac033dd9b6
commit
24d420312c
6 changed files with 198 additions and 197 deletions
136
Userland/Libraries/LibGPU/Enums.h
Normal file
136
Userland/Libraries/LibGPU/Enums.h
Normal file
|
@ -0,0 +1,136 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
|
||||
namespace GPU {
|
||||
|
||||
enum class AlphaTestFunction {
|
||||
Never,
|
||||
Always,
|
||||
Less,
|
||||
LessOrEqual,
|
||||
Equal,
|
||||
NotEqual,
|
||||
GreaterOrEqual,
|
||||
Greater,
|
||||
};
|
||||
|
||||
enum class BlendFactor {
|
||||
Zero,
|
||||
One,
|
||||
SrcAlpha,
|
||||
OneMinusSrcAlpha,
|
||||
SrcColor,
|
||||
OneMinusSrcColor,
|
||||
DstAlpha,
|
||||
OneMinusDstAlpha,
|
||||
DstColor,
|
||||
OneMinusDstColor,
|
||||
SrcAlphaSaturate,
|
||||
};
|
||||
|
||||
enum class ColorControl {
|
||||
SingleColor,
|
||||
SeparateSpecularColor,
|
||||
};
|
||||
|
||||
enum class ColorMaterialFace {
|
||||
Front,
|
||||
Back,
|
||||
FrontAndBack,
|
||||
};
|
||||
|
||||
enum class ColorMaterialMode {
|
||||
Ambient,
|
||||
AmbientAndDiffuse,
|
||||
Diffuse,
|
||||
Emissive,
|
||||
Specular,
|
||||
};
|
||||
|
||||
enum class DepthTestFunction {
|
||||
Never,
|
||||
Always,
|
||||
Less,
|
||||
LessOrEqual,
|
||||
Equal,
|
||||
NotEqual,
|
||||
GreaterOrEqual,
|
||||
Greater,
|
||||
};
|
||||
|
||||
enum Face {
|
||||
Front = 0,
|
||||
Back = 1,
|
||||
};
|
||||
|
||||
enum FogMode {
|
||||
Linear,
|
||||
Exp,
|
||||
Exp2
|
||||
};
|
||||
|
||||
enum class PolygonMode {
|
||||
Point,
|
||||
Line,
|
||||
Fill,
|
||||
};
|
||||
|
||||
enum class WindingOrder {
|
||||
Clockwise,
|
||||
CounterClockwise,
|
||||
};
|
||||
|
||||
enum class PrimitiveType {
|
||||
Triangles,
|
||||
TriangleStrip,
|
||||
TriangleFan,
|
||||
Quads,
|
||||
};
|
||||
|
||||
enum StencilOperation {
|
||||
Decrement,
|
||||
DecrementWrap,
|
||||
Increment,
|
||||
IncrementWrap,
|
||||
Invert,
|
||||
Keep,
|
||||
Replace,
|
||||
Zero,
|
||||
};
|
||||
|
||||
enum StencilTestFunction {
|
||||
Always,
|
||||
Equal,
|
||||
Greater,
|
||||
GreaterOrEqual,
|
||||
Less,
|
||||
LessOrEqual,
|
||||
Never,
|
||||
NotEqual,
|
||||
};
|
||||
|
||||
enum TexCoordGenerationCoordinate {
|
||||
None = 0x0,
|
||||
S = 0x1,
|
||||
T = 0x2,
|
||||
R = 0x4,
|
||||
Q = 0x8,
|
||||
All = 0xF,
|
||||
};
|
||||
|
||||
enum class TexCoordGenerationMode {
|
||||
ObjectLinear,
|
||||
EyeLinear,
|
||||
SphereMap,
|
||||
ReflectionMap,
|
||||
NormalMap,
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue