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