2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:29:41 +00:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/GLExtensions.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2008-12-10 23:23:05 +00:00
|
|
|
#ifndef _WIN32
|
2009-03-22 11:21:44 +00:00
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
#include <sys/types.h>
|
2009-03-08 19:19:51 +00:00
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
#endif
|
2012-12-17 20:54:20 +00:00
|
|
|
void InitInterface();
|
2009-03-08 19:19:51 +00:00
|
|
|
|
2012-12-17 20:54:20 +00:00
|
|
|
// Helpers
|
|
|
|
GLuint OpenGL_CompileProgram(const char *vertexShader, const char *fragmentShader);
|
2009-03-08 19:19:51 +00:00
|
|
|
|
2014-12-11 09:00:37 +00:00
|
|
|
// Creates and deletes a VAO and VBO suitable for attributeless rendering.
|
|
|
|
// Called by the Renderer.
|
|
|
|
void OpenGL_CreateAttributelessVAO();
|
2014-12-04 07:24:58 +00:00
|
|
|
void OpenGL_DeleteAttributelessVAO();
|
|
|
|
|
2014-12-11 09:00:37 +00:00
|
|
|
// Binds the VAO suitable for attributeless rendering.
|
|
|
|
void OpenGL_BindAttributelessVAO();
|
|
|
|
|
2013-02-07 11:47:41 +00:00
|
|
|
// this should be removed in future, but as long as glsl is unstable, we should really read this messages
|
2013-10-29 05:23:17 +00:00
|
|
|
#if defined(_DEBUG) || defined(DEBUGFAST)
|
2013-03-07 19:26:56 +00:00
|
|
|
#define DEBUG_GLSL 1
|
|
|
|
#else
|
|
|
|
#define DEBUG_GLSL 0
|
|
|
|
#endif
|