Add OpenGLRenderer (WIP)

This commit is contained in:
Lynix
2020-04-15 19:38:11 +02:00
parent ebb271a089
commit 68760209c1
118 changed files with 19236 additions and 414 deletions

View File

@@ -0,0 +1,39 @@
// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - OpenGL Renderer"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_UTILS_OPENGL_HPP
#define NAZARA_UTILS_OPENGL_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/String.hpp>
#include <Nazara/Renderer/Enums.hpp>
#include <Nazara/Utility/Enums.hpp>
#include <Nazara/OpenGLRenderer/Wrapper/Loader.hpp>
#include <string>
namespace Nz
{
inline VkBufferUsageFlags ToOpenGL(BufferType bufferType);
inline VkFormat ToOpenGL(ComponentType componentType);
inline VkCullModeFlagBits ToOpenGL(FaceSide faceSide);
inline VkPolygonMode ToOpenGL(FaceFilling faceFilling);
inline VkPrimitiveTopology ToOpenGL(PrimitiveMode primitiveMode);
inline VkCompareOp ToOpenGL(RendererComparison comparison);
inline VkFilter ToOpenGL(SamplerFilter samplerFilter);
inline VkSamplerMipmapMode ToOpenGL(SamplerMipmapMode samplerMipmap);
inline VkSamplerAddressMode ToOpenGL(SamplerWrap samplerWrap);
inline VkDescriptorType ToOpenGL(ShaderBindingType bindingType);
inline VkShaderStageFlagBits ToOpenGL(ShaderStageType stageType);
inline VkShaderStageFlags ToOpenGL(ShaderStageTypeFlags stageType);
inline VkStencilOp ToOpenGL(StencilOperation stencilOp);
inline VkVertexInputRate ToOpenGL(VertexInputRate inputRate);
NAZARA_OPENGLRENDERER_API std::string TranslateOpenGLError(VkResult code);
}
#include <Nazara/OpenGLRenderer/Utils.inl>
#endif // NAZARA_UTILS_OPENGL_HPP