Tatooine
glwrapper.h
Go to the documentation of this file.
1#ifndef TATOOINE_GL_GL_WRAPPER_H
2#define TATOOINE_GL_GL_WRAPPER_H
3//==============================================================================
4#include <array>
5
9//==============================================================================
10namespace tatooine::gl {
11//==============================================================================
12DLL_API auto clear_color_buffer() -> void;
13DLL_API auto clear_depth_buffer() -> void;
14DLL_API auto clear_color_depth_buffer() -> void;
15//==============================================================================
16DLL_API auto enable_depth_test() -> void;
17DLL_API auto disable_depth_test() -> void;
18DLL_API auto depth_test_enabled() -> GLboolean;
19DLL_API auto enable_depth_write() -> void;
20DLL_API auto disable_depth_write() -> void;
21//==============================================================================
22DLL_API auto depth_func_never() -> void;
23DLL_API auto depth_func_less() -> void;
24DLL_API auto depth_func_equal() -> void;
25DLL_API auto depth_func_lequal() -> void;
26DLL_API auto depth_func_greater() -> void;
27DLL_API auto depth_func_notequal() -> void;
28DLL_API auto depth_func_gequal() -> void;
29DLL_API auto depth_func_always() -> void;
30//==============================================================================
31DLL_API auto enable_multisampling() -> void;
32DLL_API auto disable_multisampling() -> void;
33DLL_API auto multisampling_enabled() -> bool;
34//==============================================================================
35DLL_API auto enable_blending() -> void;
36DLL_API auto disable_blending() -> void;
37//==============================================================================
38DLL_API auto enable_scissor_test() -> void;
39DLL_API auto disable_scissor_test() -> void;
40//==============================================================================
41DLL_API auto enable_face_culling() -> void;
42DLL_API auto disable_face_culling() -> void;
43DLL_API auto set_front_face_culling() -> void;
44DLL_API auto set_back_face_culling() -> void;
45DLL_API auto face_culling_enabled() -> GLboolean;
46//==============================================================================
47DLL_API auto blending_enabled() -> GLboolean;
48DLL_API auto blend_func_additive() -> void;
49DLL_API auto blend_func_multiplicative() -> void;
50DLL_API auto blend_func_subtractive() -> void;
51DLL_API auto blend_func_alpha() -> void;
52//==============================================================================
53DLL_API auto get_total_available_memory() -> GLint;
54DLL_API auto get_current_available_memory() -> GLint;
55//==============================================================================
56DLL_API auto scissor_test_enabled() -> GLboolean;
57DLL_API auto current_scissor_box() -> std::array<GLint, 4>;
58DLL_API auto current_blend_src_rgb() -> GLenum;
59DLL_API auto current_blend_dst_rgb() -> GLenum;
60DLL_API auto current_blend_src_alpha() -> GLenum;
61DLL_API auto current_blend_dst_alpha() -> GLenum;
62DLL_API auto current_blend_equation_rgb() -> GLenum;
63DLL_API auto current_blend_equation_alpha() -> GLenum;
64DLL_API auto current_active_texture() -> GLenum;
65DLL_API auto current_clip_origin() -> GLenum;
66DLL_API auto current_polygon_mode() -> std::array<GLenum, 2>;
67DLL_API auto current_viewport() -> std::array<GLint, 4>;
68DLL_API auto bound_sampler() -> GLuint;
69DLL_API auto bound_program() -> GLuint;
70DLL_API auto bound_vertexbuffer() -> GLuint;
71DLL_API auto bound_vertexarray() -> GLuint;
72DLL_API auto bound_texture(GLenum binding) -> GLuint;
73DLL_API auto bound_texture1d() -> GLuint;
74DLL_API auto bound_texture2d() -> GLuint;
75DLL_API auto bound_texture3d() -> GLuint;
77//==============================================================================
78DLL_API auto max_compute_shared_memory_size() -> GLint;
79DLL_API auto barrier() -> void;
80DLL_API auto shader_storage_barrier() -> void;
81DLL_API auto shader_image_access_barrier() -> void;
82DLL_API auto atomic_counter_barrier() -> void;
83DLL_API auto max_compute_work_group_count() -> std::array<GLint, 3>;
84DLL_API auto max_compute_work_group_size() -> std::array<GLint, 3>;
85DLL_API auto max_compute_work_group_invocations() -> GLint;
86DLL_API auto max_compute_image_uniforms() -> GLint;
87//==============================================================================
88DLL_API auto opengl_version() -> std::pair<GLint, GLint>;
89//==============================================================================
90} // namespace tatooine::gl
91//==============================================================================
92#endif
Definition: ansiformat.h:6
DLL_API auto depth_func_always() -> void
DLL_API auto bound_program() -> GLuint
DLL_API auto clear_color_buffer() -> void
DLL_API auto current_blend_equation_rgb() -> GLenum
DLL_API auto bound_texture1d() -> GLuint
DLL_API auto get_total_available_memory() -> GLint
DLL_API auto current_clip_origin() -> GLenum
DLL_API auto current_blend_equation_alpha() -> GLenum
DLL_API auto set_back_face_culling() -> void
DLL_API auto blend_func_alpha() -> void
DLL_API auto disable_depth_write() -> void
DLL_API auto depth_func_less() -> void
DLL_API auto depth_func_notequal() -> void
DLL_API auto enable_blending() -> void
DLL_API auto current_blend_dst_rgb() -> GLenum
DLL_API auto max_compute_work_group_count() -> std::array< GLint, 3 >
DLL_API auto bound_texture3d() -> GLuint
DLL_API auto blending_enabled() -> GLboolean
DLL_API auto disable_scissor_test() -> void
DLL_API auto set_front_face_culling() -> void
DLL_API auto get_current_available_memory() -> GLint
DLL_API auto max_compute_work_group_size() -> std::array< GLint, 3 >
DLL_API auto scissor_test_enabled() -> GLboolean
DLL_API auto depth_func_equal() -> void
DLL_API auto depth_test_enabled() -> GLboolean
DLL_API auto atomic_counter_barrier() -> void
DLL_API auto enable_scissor_test() -> void
DLL_API auto max_texture_image_units() -> GLuint
DLL_API auto bound_texture(GLenum binding) -> GLuint
DLL_API auto enable_depth_write() -> void
DLL_API auto enable_depth_test() -> void
DLL_API auto depth_func_gequal() -> void
DLL_API auto depth_func_lequal() -> void
DLL_API auto blend_func_subtractive() -> void
DLL_API auto max_compute_work_group_invocations() -> GLint
DLL_API auto face_culling_enabled() -> GLboolean
DLL_API auto current_blend_src_rgb() -> GLenum
DLL_API auto shader_image_access_barrier() -> void
DLL_API auto current_scissor_box() -> std::array< GLint, 4 >
DLL_API auto current_viewport() -> std::array< GLint, 4 >
DLL_API auto bound_vertexbuffer() -> GLuint
DLL_API auto opengl_version() -> std::pair< GLint, GLint >
DLL_API auto blend_func_multiplicative() -> void
DLL_API auto current_blend_src_alpha() -> GLenum
DLL_API auto barrier() -> void
DLL_API auto blend_func_additive() -> void
DLL_API auto clear_depth_buffer() -> void
DLL_API auto multisampling_enabled() -> bool
DLL_API auto current_polygon_mode() -> std::array< GLenum, 2 >
DLL_API auto enable_multisampling() -> void
DLL_API auto bound_sampler() -> GLuint
DLL_API auto max_compute_image_uniforms() -> GLint
DLL_API auto current_blend_dst_alpha() -> GLenum
DLL_API auto disable_depth_test() -> void
DLL_API auto depth_func_greater() -> void
DLL_API auto enable_face_culling() -> void
DLL_API auto current_active_texture() -> GLenum
DLL_API auto disable_blending() -> void
DLL_API auto disable_multisampling() -> void
DLL_API auto bound_vertexarray() -> GLuint
DLL_API auto depth_func_never() -> void
DLL_API auto bound_texture2d() -> GLuint
DLL_API auto clear_color_depth_buffer() -> void
DLL_API auto disable_face_culling() -> void
DLL_API auto shader_storage_barrier() -> void
DLL_API auto max_compute_shared_memory_size() -> GLint