Project Alice
Loading...
Searching...
No Matches
opengl_wrapper.cpp File Reference
#include "opengl_wrapper.hpp"
#include "system_state.hpp"
#include "simple_fs.hpp"
#include "fonts.hpp"
#include "bmfont.hpp"
Include dependency graph for opengl_wrapper.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ogl
 

Functions

std::string_view ogl::opengl_get_error_name (GLenum t)
 
void ogl::notify_user_of_fatal_opengl_error (std::string message)
 
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_special_icons (sys::state &state)
 
std::string_view ogl::framebuffer_error (GLenum e)
 
void ogl::initialize_msaa (sys::state &state, int32_t size_x, int32_t size_y)
 
void ogl::deinitialize_msaa (sys::state &state)
 
void ogl::initialize_opengl (sys::state &state)
 
void ogl::load_shaders (sys::state &state)
 
void ogl::load_global_squares (sys::state &state)
 
auto ogl::map_color_modification_to_index (color_modification e)
 
void ogl::bind_vertices_by_rotation (sys::state const &state, ui::rotation r, bool flipped, bool rtl)
 
void ogl::render_simple_rect (sys::state const &state, float x, float y, float width, float height, ui::rotation r, bool flipped, bool rtl)
 
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_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_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)
 
GLuint ogl::get_flag_texture_handle_from_tag (sys::state &state, const char tag[3])
 
bool ogl::display_tag_is_valid (sys::state &state, char tag[3])
 
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)
 
void ogl::internal_text_render (sys::state &state, text::stored_glyphs const &txt, float x, float baseline_y, float size, text::font &f)
 
void ogl::render_classic_text (sys::state &state, text::stored_glyphs const &txt, float x, float y, float size, color_modification enabled, color3f const &c, text::bm_font const &font, text::font &base_font)
 
void ogl::render_new_text (sys::state &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)
 
bool ogl::msaa_enabled (sys::state const &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)