KiCad PCB EDA Suite
|
#include <antialiasing.h>
Public Member Functions | |
ANTIALIASING_SMAA (OPENGL_COMPOSITOR *aCompositor) | |
bool | Init () override |
unsigned int | CreateBuffer () override |
VECTOR2I | GetInternalBufferSize () override |
void | OnLostBuffers () override |
void | Begin () override |
void | DrawBuffer (GLuint buffer) override |
void | Present () override |
Private Member Functions | |
void | loadShaders () |
void | updateUniforms () |
Private Attributes | |
bool | areBuffersInitialized |
unsigned int | smaaBaseBuffer |
unsigned int | smaaEdgesBuffer |
unsigned int | smaaBlendBuffer |
unsigned int | smaaAreaTex |
unsigned int | smaaSearchTex |
bool | shadersLoaded |
std::unique_ptr< SHADER > | pass_1_shader |
GLint | pass_1_metrics |
std::unique_ptr< SHADER > | pass_2_shader |
GLint | pass_2_metrics |
std::unique_ptr< SHADER > | pass_3_shader |
GLint | pass_3_metrics |
OPENGL_COMPOSITOR * | compositor |
Definition at line 98 of file antialiasing.h.
ANTIALIASING_SMAA::ANTIALIASING_SMAA | ( | OPENGL_COMPOSITOR * | aCompositor | ) |
Definition at line 211 of file antialiasing.cpp.
References pass_1_metrics, pass_2_metrics, pass_3_metrics, smaaAreaTex, smaaBaseBuffer, smaaBlendBuffer, smaaEdgesBuffer, and smaaSearchTex.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 467 of file antialiasing.cpp.
References KIGFX::COLOR4D::BLACK, KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), compositor, KIGFX::OPENGL_COMPOSITOR::SetBuffer(), and smaaBaseBuffer.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 454 of file antialiasing.cpp.
References compositor, KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), and KIGFX::OPENGL_COMPOSITOR::GetScreenSize().
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 460 of file antialiasing.cpp.
References compositor, KIGFX::OPENGL_COMPOSITOR::DrawBuffer(), and smaaBaseBuffer.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 228 of file antialiasing.cpp.
References compositor, and KIGFX::OPENGL_COMPOSITOR::GetScreenSize().
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 420 of file antialiasing.cpp.
References areBuffersInitialized, compositor, KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), loadShaders(), shadersLoaded, smaaBaseBuffer, smaaBlendBuffer, smaaEdgesBuffer, and updateUniforms().
|
private |
Definition at line 234 of file antialiasing.cpp.
References AREATEX_HEIGHT, AREATEX_WIDTH, areaTexBytes, checkGlError(), pass_1_metrics, pass_1_shader, pass_2_metrics, pass_2_shader, pass_3_metrics, pass_3_shader, SEARCHTEX_HEIGHT, SEARCHTEX_WIDTH, searchTexBytes, KIGFX::SHADER_TYPE_FRAGMENT, KIGFX::SHADER_TYPE_VERTEX, shadersLoaded, smaaAreaTex, and smaaSearchTex.
Referenced by Init().
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 448 of file antialiasing.cpp.
References areBuffersInitialized.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 501 of file antialiasing.cpp.
References KIGFX::COLOR4D::BLACK, checkGlError(), KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), compositor, KIGFX::OPENGL_COMPOSITOR::DIRECT_RENDERING, KIGFX::OPENGL_COMPOSITOR::GetBufferTexture(), pass_1_shader, pass_2_shader, pass_3_shader, KIGFX::OPENGL_COMPOSITOR::SetBuffer(), smaaAreaTex, smaaBaseBuffer, smaaBlendBuffer, smaaEdgesBuffer, and smaaSearchTex.
|
private |
Definition at line 390 of file antialiasing.cpp.
References checkGlError(), compositor, KIGFX::OPENGL_COMPOSITOR::GetScreenSize(), pass_1_metrics, pass_1_shader, pass_2_metrics, pass_2_shader, pass_3_metrics, and pass_3_shader.
Referenced by Init().
|
private |
Definition at line 117 of file antialiasing.h.
Referenced by Init(), and OnLostBuffers().
|
private |
Definition at line 138 of file antialiasing.h.
Referenced by Begin(), CreateBuffer(), DrawBuffer(), GetInternalBufferSize(), Init(), Present(), and updateUniforms().
|
private |
Definition at line 130 of file antialiasing.h.
Referenced by ANTIALIASING_SMAA(), loadShaders(), and updateUniforms().
|
private |
Definition at line 129 of file antialiasing.h.
Referenced by loadShaders(), Present(), and updateUniforms().
|
private |
Definition at line 133 of file antialiasing.h.
Referenced by ANTIALIASING_SMAA(), loadShaders(), and updateUniforms().
|
private |
Definition at line 132 of file antialiasing.h.
Referenced by loadShaders(), Present(), and updateUniforms().
|
private |
Definition at line 136 of file antialiasing.h.
Referenced by ANTIALIASING_SMAA(), loadShaders(), and updateUniforms().
|
private |
Definition at line 135 of file antialiasing.h.
Referenced by loadShaders(), Present(), and updateUniforms().
|
private |
Definition at line 127 of file antialiasing.h.
Referenced by Init(), and loadShaders().
|
private |
Definition at line 124 of file antialiasing.h.
Referenced by ANTIALIASING_SMAA(), loadShaders(), and Present().
|
private |
Definition at line 119 of file antialiasing.h.
Referenced by ANTIALIASING_SMAA(), Begin(), DrawBuffer(), Init(), and Present().
|
private |
Definition at line 121 of file antialiasing.h.
Referenced by ANTIALIASING_SMAA(), Init(), and Present().
|
private |
Definition at line 120 of file antialiasing.h.
Referenced by ANTIALIASING_SMAA(), Init(), and Present().
|
private |
Definition at line 125 of file antialiasing.h.
Referenced by ANTIALIASING_SMAA(), loadShaders(), and Present().