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