Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
GLFormats.hpp
1#pragma once
2
3#include <Common/Graphics/Formats.hpp>
4#include <Common/Graphics/VertexBuffer.hpp>
5
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);
16
17 GLenum TranslateBlendOpToOpenGL(BlendOperation op);
18 GLenum TranslateBlendFactorToOpenGL(BlendFactor factor);
19 GLenum TranslateCompareOpToOpenGL(CompareOperation op);
20}