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