3#include <Common/Graphics/Formats.hpp>
4#include <Common/Graphics/VertexBuffer.hpp>
6namespace Grindstone::GraphicsAPI {
7 GLenum TranslateVertexFormatToOpenGL(VertexFormat format);
8 GLenum TranslateMinFilterToOpenGL(
bool hasMips, TextureFilter minFilter, TextureFilter mipFilter);
9 GLenum TranslateMagFilterToOpenGL(TextureFilter);
10 GLenum TranslateWrapToOpenGL(TextureWrapMode);
11 void TranslateColorFormatToOpenGL(ColorFormat inFormat,
bool& isCompressed, GLenum& format, GLint& internalFormat);
12 void TranslateDepthFormatToOpenGL(DepthFormat inFormat, GLenum& format, GLint& internalFormat);
13 GLenum TranslateCullModeToOpenGL(CullMode cullMode);
14 GLenum TranslatePolygonModeToOpenGL(PolygonFillMode mode);
15 GLenum TranslateGeometryTypeToOpenGL(GeometryType geometryType);
17 GLenum TranslateBlendOpToOpenGL(BlendOperation op);
18 GLenum TranslateBlendFactorToOpenGL(BlendFactor factor);
19 GLenum TranslateCompareOpToOpenGL(CompareOperation op);