KiCad PCB EDA Suite
|
#include <antialiasing.h>
Public Member Functions | |
ANTIALIASING_SUPERSAMPLING (OPENGL_COMPOSITOR *aCompositor, SUPERSAMPLING_MODE aMode) | |
bool | Init () override |
unsigned int | CreateBuffer () override |
VECTOR2U | GetInternalBufferSize () override |
void | OnLostBuffers () override |
void | Begin () override |
void | DrawBuffer (GLuint) override |
void | Present () override |
Private Attributes | |
OPENGL_COMPOSITOR * | compositor |
SUPERSAMPLING_MODE | mode |
unsigned int | ssaaMainBuffer |
bool | areBuffersCreated |
bool | areShadersCreated |
std::unique_ptr< SHADER > | x4_shader |
Definition at line 79 of file antialiasing.h.
ANTIALIASING_SUPERSAMPLING::ANTIALIASING_SUPERSAMPLING | ( | OPENGL_COMPOSITOR * | aCompositor, |
SUPERSAMPLING_MODE | aMode | ||
) |
Definition at line 129 of file antialiasing.cpp.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 182 of file antialiasing.cpp.
References KIGFX::COLOR4D::BLACK, KIGFX::OPENGL_COMPOSITOR::ClearBuffer(), compositor, KIGFX::OPENGL_COMPOSITOR::SetBuffer(), and ssaaMainBuffer.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 225 of file antialiasing.cpp.
References compositor, KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), and GetInternalBufferSize().
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 189 of file antialiasing.cpp.
References compositor, KIGFX::OPENGL_COMPOSITOR::DrawBuffer(), and ssaaMainBuffer.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 175 of file antialiasing.cpp.
References compositor, KIGFX::OPENGL_COMPOSITOR::GetScreenSize(), mode, and KIGFX::X2.
Referenced by CreateBuffer().
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 137 of file antialiasing.cpp.
References areBuffersCreated, areShadersCreated, checkGlError(), compositor, KIGFX::OPENGL_COMPOSITOR::CreateBuffer(), mode, KIGFX::SHADER_TYPE_FRAGMENT, KIGFX::SHADER_TYPE_VERTEX, KIGFX::BUILTIN_SHADERS::ssaa_x4_fragment_shader, KIGFX::BUILTIN_SHADERS::ssaa_x4_vertex_shader, ssaaMainBuffer, KIGFX::X4, and x4_shader.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 219 of file antialiasing.cpp.
References areBuffersCreated.
|
overridevirtual |
Implements KIGFX::OPENGL_PRESENTOR.
Definition at line 195 of file antialiasing.cpp.
References checkGlError(), compositor, KIGFX::OPENGL_COMPOSITOR::DIRECT_RENDERING, KIGFX::OPENGL_COMPOSITOR::GetBufferTexture(), mode, KIGFX::OPENGL_COMPOSITOR::SetBuffer(), ssaaMainBuffer, KIGFX::X4, and x4_shader.
|
private |
Definition at line 99 of file antialiasing.h.
Referenced by Init(), and OnLostBuffers().
|
private |
Definition at line 101 of file antialiasing.h.
Referenced by Init().
|
private |
Definition at line 95 of file antialiasing.h.
Referenced by Begin(), CreateBuffer(), DrawBuffer(), GetInternalBufferSize(), Init(), and Present().
|
private |
Definition at line 96 of file antialiasing.h.
Referenced by GetInternalBufferSize(), Init(), and Present().
|
private |
Definition at line 98 of file antialiasing.h.
Referenced by Begin(), DrawBuffer(), Init(), and Present().
|
private |
Definition at line 102 of file antialiasing.h.