KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::ANTIALIASING_SMAA Class Reference

#include <antialiasing.h>

Inheritance diagram for KIGFX::ANTIALIASING_SMAA:
KIGFX::OPENGL_PRESENTOR

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< SHADERpass_1_shader
 
GLint pass_1_metrics
 
std::unique_ptr< SHADERpass_2_shader
 
GLint pass_2_metrics
 
std::unique_ptr< SHADERpass_3_shader
 
GLint pass_3_metrics
 
OPENGL_COMPOSITORcompositor
 

Detailed Description

Definition at line 98 of file antialiasing.h.

Constructor & Destructor Documentation

◆ ANTIALIASING_SMAA()

ANTIALIASING_SMAA::ANTIALIASING_SMAA ( OPENGL_COMPOSITOR aCompositor)

Member Function Documentation

◆ Begin()

void ANTIALIASING_SMAA::Begin ( )
overridevirtual

◆ CreateBuffer()

unsigned int ANTIALIASING_SMAA::CreateBuffer ( )
overridevirtual

◆ DrawBuffer()

void ANTIALIASING_SMAA::DrawBuffer ( GLuint  buffer)
overridevirtual

◆ GetInternalBufferSize()

VECTOR2I ANTIALIASING_SMAA::GetInternalBufferSize ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 228 of file antialiasing.cpp.

References compositor, and KIGFX::OPENGL_COMPOSITOR::GetScreenSize().

◆ Init()

◆ loadShaders()

◆ OnLostBuffers()

void ANTIALIASING_SMAA::OnLostBuffers ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 448 of file antialiasing.cpp.

References areBuffersInitialized.

◆ Present()

◆ updateUniforms()

void ANTIALIASING_SMAA::updateUniforms ( )
private

Member Data Documentation

◆ areBuffersInitialized

bool KIGFX::ANTIALIASING_SMAA::areBuffersInitialized
private

Definition at line 117 of file antialiasing.h.

Referenced by Init(), and OnLostBuffers().

◆ compositor

OPENGL_COMPOSITOR* KIGFX::ANTIALIASING_SMAA::compositor
private

◆ pass_1_metrics

GLint KIGFX::ANTIALIASING_SMAA::pass_1_metrics
private

Definition at line 130 of file antialiasing.h.

Referenced by ANTIALIASING_SMAA(), loadShaders(), and updateUniforms().

◆ pass_1_shader

std::unique_ptr<SHADER> KIGFX::ANTIALIASING_SMAA::pass_1_shader
private

Definition at line 129 of file antialiasing.h.

Referenced by loadShaders(), Present(), and updateUniforms().

◆ pass_2_metrics

GLint KIGFX::ANTIALIASING_SMAA::pass_2_metrics
private

Definition at line 133 of file antialiasing.h.

Referenced by ANTIALIASING_SMAA(), loadShaders(), and updateUniforms().

◆ pass_2_shader

std::unique_ptr<SHADER> KIGFX::ANTIALIASING_SMAA::pass_2_shader
private

Definition at line 132 of file antialiasing.h.

Referenced by loadShaders(), Present(), and updateUniforms().

◆ pass_3_metrics

GLint KIGFX::ANTIALIASING_SMAA::pass_3_metrics
private

Definition at line 136 of file antialiasing.h.

Referenced by ANTIALIASING_SMAA(), loadShaders(), and updateUniforms().

◆ pass_3_shader

std::unique_ptr<SHADER> KIGFX::ANTIALIASING_SMAA::pass_3_shader
private

Definition at line 135 of file antialiasing.h.

Referenced by loadShaders(), Present(), and updateUniforms().

◆ shadersLoaded

bool KIGFX::ANTIALIASING_SMAA::shadersLoaded
private

Definition at line 127 of file antialiasing.h.

Referenced by Init(), and loadShaders().

◆ smaaAreaTex

unsigned int KIGFX::ANTIALIASING_SMAA::smaaAreaTex
private

Definition at line 124 of file antialiasing.h.

Referenced by ANTIALIASING_SMAA(), loadShaders(), and Present().

◆ smaaBaseBuffer

unsigned int KIGFX::ANTIALIASING_SMAA::smaaBaseBuffer
private

Definition at line 119 of file antialiasing.h.

Referenced by ANTIALIASING_SMAA(), Begin(), DrawBuffer(), Init(), and Present().

◆ smaaBlendBuffer

unsigned int KIGFX::ANTIALIASING_SMAA::smaaBlendBuffer
private

Definition at line 121 of file antialiasing.h.

Referenced by ANTIALIASING_SMAA(), Init(), and Present().

◆ smaaEdgesBuffer

unsigned int KIGFX::ANTIALIASING_SMAA::smaaEdgesBuffer
private

Definition at line 120 of file antialiasing.h.

Referenced by ANTIALIASING_SMAA(), Init(), and Present().

◆ smaaSearchTex

unsigned int KIGFX::ANTIALIASING_SMAA::smaaSearchTex
private

Definition at line 125 of file antialiasing.h.

Referenced by ANTIALIASING_SMAA(), loadShaders(), and Present().


The documentation for this class was generated from the following files: