MeshLib C++ Docs
Loading...
Searching...
No Matches
MRAlphaSortGL.h
Go to the documentation of this file.
1#pragma once
2
3namespace MR
4{
7
8
10{
11public:
12 typedef unsigned int GLuint;
13
15
17 void init();
19 void free();
20
27
28private:
29 bool inited_ = false;
30 int width_{ 0 };
31 int height_{ 0 };
32
33 GLuint transparency_quad_vbo = 0;
34 GLuint transparency_quad_vao = 0;
35 GLuint transparency_heads_texture_vbo = 0;
36 GLuint transparency_shared_shader_data_vbo = 0;
37 GLuint transparency_atomic_counter_vbo = 0;
38 GLuint transparency_static_clean_vbo = 0;
39};
40
41}
Definition MRAlphaSortGL.h:10
auto width(const Box< V > &box)
returns size along x axis
Definition MRBox.h:354
auto height(const Box< V > &box)
returns size along y axis
Definition MRBox.h:361
unsigned int GLuint
Definition MRAlphaSortGL.h:12
void drawTransparencyTextureToScreen() const
Draws alpha sorting overlay quad texture to screen.
void clearTransparencyTextures() const
Set all textures used for alpha sorting to zero (heads texture, atomics texture)
void updateTransparencyTexturesSize(int width, int height)
Updates size of textures used in alpha sorting (according to viewport size)
void init()
Initialize all GL buffers and arrays.
void free()
Free all GL data.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8