2015-05-24 07:55:12 +03:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 02:08:10 +03:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 06:29:41 +03:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2014-02-10 20:54:46 +02:00
|
|
|
#pragma once
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2015-10-09 10:25:09 +03:00
|
|
|
#include <string>
|
|
|
|
|
2015-09-18 19:40:00 +03:00
|
|
|
#include "Common/GL/GLExtensions/GLExtensions.h"
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2018-10-03 16:03:26 +03:00
|
|
|
class GLContext;
|
|
|
|
|
2019-02-15 03:59:50 +02:00
|
|
|
// Texture which we use to not disturb the other bindings.
|
|
|
|
constexpr GLenum GL_MUTABLE_TEXTURE_INDEX = GL_TEXTURE10;
|
|
|
|
|
2018-03-10 06:52:48 +02:00
|
|
|
namespace GLUtil
|
|
|
|
{
|
|
|
|
GLuint CompileProgram(const std::string& vertexShader, const std::string& fragmentShader);
|
2018-10-03 16:03:26 +03:00
|
|
|
void EnablePrimitiveRestart(const GLContext* context);
|
2018-10-03 16:02:45 +03:00
|
|
|
} // namespace GLUtil
|