mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
de2abbed17
This way we won't trash an existing bound VBO by mistake.
35 lines
889 B
C
35 lines
889 B
C
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/MathUtil.h"
|
|
#include "VideoBackends/OGL/GLExtensions/GLExtensions.h"
|
|
#include "VideoCommon/VideoConfig.h"
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include <sys/types.h>
|
|
|
|
#endif
|
|
void InitInterface();
|
|
|
|
// Helpers
|
|
GLuint OpenGL_CompileProgram(const char *vertexShader, const char *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)
|
|
#define DEBUG_GLSL 1
|
|
#else
|
|
#define DEBUG_GLSL 0
|
|
#endif
|