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