dolphin/Source/Core/Common/GL/GLUtil.h

35 lines
849 B
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
2015-10-09 07:25:09 +00:00
#include <string>
#include "Common/GL/GLExtensions/GLExtensions.h"
#ifndef _WIN32
#include <sys/types.h>
#endif
void InitInterface();
// Helpers
2015-10-09 07:25:09 +00:00
GLuint OpenGL_CompileProgram(const std::string& vertexShader, const std::string& fragmentShader);
// Creates and deletes a VAO and VBO suitable for attributeless rendering.
// Called by the Renderer.
void OpenGL_CreateAttributelessVAO();
void OpenGL_DeleteAttributelessVAO();
// Binds the VAO suitable for attributeless rendering.
void OpenGL_BindAttributelessVAO();
// this should be removed in future, but as long as glsl is unstable, we should really read this messages
#if defined(_DEBUG) || defined(DEBUGFAST)
2013-03-07 19:26:56 +00:00
#define DEBUG_GLSL 1
#else
#define DEBUG_GLSL 0
#endif