2015-09-18 16:40:00 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2019-06-17 22:37:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
2015-09-18 16:40:00 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2016-01-01 19:58:19 +00:00
|
|
|
#include "Common/GL/GLExtensions/AMD_pinned_memory.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_ES2_compatibility.h"
|
2016-01-01 19:58:19 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_ES3_compatibility.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_blend_func_extended.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_buffer_storage.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_clip_control.h"
|
2016-11-27 08:14:52 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_compute_shader.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_copy_image.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_debug_output.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_draw_elements_base_vertex.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_framebuffer_object.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_get_program_binary.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_map_buffer_range.h"
|
2016-01-01 19:58:19 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_occlusion_query2.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_sample_shading.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_sampler_objects.h"
|
2016-11-27 08:14:51 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_shader_image_load_store.h"
|
2016-01-01 19:58:19 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_shader_storage_buffer_object.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_sync.h"
|
2017-07-27 12:00:01 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_texture_compression_bptc.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_texture_multisample.h"
|
2016-11-27 08:14:29 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_texture_storage.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/ARB_texture_storage_multisample.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_uniform_buffer_object.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_vertex_array_object.h"
|
|
|
|
#include "Common/GL/GLExtensions/ARB_viewport_array.h"
|
2017-04-16 10:33:30 +00:00
|
|
|
#include "Common/GL/GLExtensions/EXT_texture_compression_s3tc.h"
|
2016-01-01 19:58:19 +00:00
|
|
|
#include "Common/GL/GLExtensions/EXT_texture_filter_anisotropic.h"
|
|
|
|
#include "Common/GL/GLExtensions/HP_occlusion_test.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/KHR_debug.h"
|
2016-08-06 11:30:32 +00:00
|
|
|
#include "Common/GL/GLExtensions/NV_depth_buffer_float.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/NV_occlusion_query_samples.h"
|
|
|
|
#include "Common/GL/GLExtensions/NV_primitive_restart.h"
|
|
|
|
#include "Common/GL/GLExtensions/gl_1_1.h"
|
|
|
|
#include "Common/GL/GLExtensions/gl_1_2.h"
|
|
|
|
#include "Common/GL/GLExtensions/gl_1_3.h"
|
|
|
|
#include "Common/GL/GLExtensions/gl_1_4.h"
|
|
|
|
#include "Common/GL/GLExtensions/gl_1_5.h"
|
|
|
|
#include "Common/GL/GLExtensions/gl_2_0.h"
|
2016-01-01 19:58:19 +00:00
|
|
|
#include "Common/GL/GLExtensions/gl_2_1.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
#include "Common/GL/GLExtensions/gl_3_0.h"
|
|
|
|
#include "Common/GL/GLExtensions/gl_3_1.h"
|
|
|
|
#include "Common/GL/GLExtensions/gl_3_2.h"
|
2016-01-27 19:58:34 +00:00
|
|
|
#include "Common/GL/GLExtensions/gl_4_2.h"
|
2016-02-15 02:35:38 +00:00
|
|
|
#include "Common/GL/GLExtensions/gl_4_3.h"
|
2016-02-15 02:16:33 +00:00
|
|
|
#include "Common/GL/GLExtensions/gl_4_4.h"
|
2016-02-15 02:02:32 +00:00
|
|
|
#include "Common/GL/GLExtensions/gl_4_5.h"
|
2015-09-18 16:40:00 +00:00
|
|
|
|
2018-10-03 13:03:26 +00:00
|
|
|
class GLContext;
|
|
|
|
|
2015-09-18 16:40:00 +00:00
|
|
|
namespace GLExtensions
|
|
|
|
{
|
|
|
|
// Initializes the interface
|
2018-10-03 13:03:26 +00:00
|
|
|
bool Init(GLContext* context);
|
2015-09-18 16:40:00 +00:00
|
|
|
|
|
|
|
// Function for checking if the hardware supports an extension
|
|
|
|
// example: if (GLExtensions::Supports("GL_ARB_multi_map"))
|
|
|
|
bool Supports(const std::string& name);
|
|
|
|
|
|
|
|
// Returns OpenGL version in format 430
|
|
|
|
u32 Version();
|
2018-10-03 13:03:26 +00:00
|
|
|
} // namespace GLExtensions
|