Project Alice
Loading...
Searching...
No Matches
opengl_wrapper.hpp File Reference
#include <string>
#include <string_view>
#include "glew.h"
#include "container_types.hpp"
#include "texture.hpp"
#include "fonts.hpp"
Include dependency graph for opengl_wrapper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ogl::color3f
 
struct  ogl::image
 
struct  ogl::data
 
class  ogl::lines
 

Namespaces

namespace  ogl
 
namespace  ogl::parameters
 

Macros

#define GLEW_STATIC
 

Enumerations

enum class  ogl::color_modification { ogl::none , ogl::disabled , ogl::interactable , ogl::interactable_disabled }
 

Functions

void ogl::debug_callback (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei, GLchar const *message, void const *)
 
void ogl::notify_user_of_fatal_opengl_error (std::string message)
 
void ogl::create_opengl_context (sys::state &state)
 
void ogl::initialize_opengl (sys::state &state)
 
void ogl::shutdown_opengl (sys::state &state)
 
bool ogl::display_tag_is_valid (sys::state &state, char tag[3])
 
GLint ogl::compile_shader (std::string_view source, GLenum type)
 
GLuint ogl::create_program (std::string_view vertex_shader, std::string_view fragment_shader)
 
void ogl::load_shaders (sys::state &state)
 
void ogl::load_global_squares (sys::state &state)
 
void ogl::render_simple_rect (sys::state const &state, float x, float y, float width, float height, ui::rotation r, bool flipped)
 
void ogl::render_textured_rect (sys::state const &state, color_modification enabled, float x, float y, float width, float height, GLuint texture_handle, ui::rotation r, bool flipped, bool rtl)
 
void ogl::render_textured_rect_direct (sys::state const &state, float x, float y, float width, float height, uint32_t handle)
 
void ogl::render_linegraph (sys::state const &state, color_modification enabled, float x, float y, float width, float height, lines &l)
 
void ogl::render_linegraph (sys::state const &state, color_modification enabled, float x, float y, float width, float height, float r, float g, float b, lines &l)
 
void ogl::render_barchart (sys::state const &state, color_modification enabled, float x, float y, float width, float height, data_texture &t, ui::rotation r, bool flipped, bool rtl)
 
void ogl::render_piechart (sys::state const &state, color_modification enabled, float x, float y, float size, data_texture &t)
 
void ogl::render_bordered_rect (sys::state const &state, color_modification enabled, float border_size, float x, float y, float width, float height, GLuint texture_handle, ui::rotation r, bool flipped, bool rtl)
 
void ogl::render_masked_rect (sys::state const &state, color_modification enabled, float x, float y, float width, float height, GLuint texture_handle, GLuint mask_texture_handle, ui::rotation r, bool flipped, bool rtl)
 
void ogl::render_progress_bar (sys::state const &state, color_modification enabled, float progress, float x, float y, float width, float height, GLuint left_texture_handle, GLuint right_texture_handle, ui::rotation r, bool flipped, bool rtl)
 
void ogl::render_tinted_textured_rect (sys::state const &state, float x, float y, float width, float height, float r, float g, float b, GLuint texture_handle, ui::rotation rot, bool flipped, bool rtl)
 
void ogl::render_subsprite (sys::state const &state, color_modification enabled, int frame, int total_frames, float x, float y, float width, float height, GLuint texture_handle, ui::rotation r, bool flipped, bool rtl)
 
void ogl::render_tinted_rect (sys::state const &state, float x, float y, float width, float height, float r, float g, float b, ui::rotation rot, bool flipped, bool rtl)
 
void ogl::render_tinted_subsprite (sys::state const &state, int frame, int total_frames, float x, float y, float width, float height, float r, float g, float b, GLuint texture_handle, ui::rotation rot, bool flipped, bool rtl)
 
void ogl::render_new_text (sys::state const &state, text::stored_glyphs const &txt, color_modification enabled, float x, float y, float size, color3f const &c, text::font &f)
 
void ogl::render_text (sys::state &state, text::stored_glyphs const &txt, color_modification enabled, float x, float y, color3f const &c, uint16_t font_id)
 
void ogl::render_text_icon (sys::state &state, text::embedded_icon ico, float x, float baseline_y, float font_size, text::font &f, ogl::color_modification cmod)
 
void ogl::render_text_flag (sys::state &state, text::embedded_flag ico, float x, float baseline_y, float font_size, text::font &f, ogl::color_modification cmod)
 
void ogl::render_text_unit_icon (sys::state &state, text::embedded_unit_icon ico, float x, float baseline_y, float font_size, text::font &f, ogl::color_modification cmod)
 
bool ogl::msaa_enabled (sys::state const &state)
 
void ogl::initialize_msaa (sys::state &state, int32_t size_x, int32_t size_y)
 
void ogl::deinitialize_msaa (sys::state &state)
 
image ogl::load_stb_image (simple_fs::file &file)
 
GLuint ogl::make_gl_texture (uint8_t *data, uint32_t size_x, uint32_t size_y, uint32_t channels)
 
GLuint ogl::make_gl_texture (simple_fs::directory const &dir, native_string_view file_name)
 
void ogl::set_gltex_parameters (GLuint texture_handle, GLuint texture_type, GLuint filter, GLuint wrap)
 
GLuint ogl::load_texture_array_from_file (simple_fs::file &file, int32_t tiles_x, int32_t tiles_y)
 

Variables

constexpr GLuint ogl::parameters::screen_width = 0
 
constexpr GLuint ogl::parameters::screen_height = 1
 
constexpr GLuint ogl::parameters::drawing_rectangle = 2
 
constexpr GLuint ogl::parameters::border_size = 6
 
constexpr GLuint ogl::parameters::inner_color = 7
 
constexpr GLuint ogl::parameters::subrect = 10
 
constexpr GLuint ogl::parameters::enabled = 4
 
constexpr GLuint ogl::parameters::disabled = 3
 
constexpr GLuint ogl::parameters::border_filter = 0
 
constexpr GLuint ogl::parameters::filter = 1
 
constexpr GLuint ogl::parameters::no_filter = 2
 
constexpr GLuint ogl::parameters::sub_sprite = 5
 
constexpr GLuint ogl::parameters::use_mask = 6
 
constexpr GLuint ogl::parameters::progress_bar = 7
 
constexpr GLuint ogl::parameters::frame_stretch = 8
 
constexpr GLuint ogl::parameters::piechart = 9
 
constexpr GLuint ogl::parameters::barchart = 10
 
constexpr GLuint ogl::parameters::linegraph = 11
 
constexpr GLuint ogl::parameters::tint = 12
 
constexpr GLuint ogl::parameters::interactable = 13
 
constexpr GLuint ogl::parameters::interactable_disabled = 14
 
constexpr GLuint ogl::parameters::subsprite_b = 15
 
constexpr GLuint ogl::parameters::alternate_tint = 16
 
constexpr GLuint ogl::parameters::linegraph_color = 17
 
constexpr GLuint ogl::parameters::transparent_color = 18
 

Macro Definition Documentation

◆ GLEW_STATIC

#define GLEW_STATIC

Definition at line 7 of file opengl_wrapper.hpp.