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

#include <antialiasing.h>

Inheritance diagram for KIGFX::ANTIALIASING_SUPERSAMPLING:
KIGFX::OPENGL_PRESENTOR

Public Member Functions

 ANTIALIASING_SUPERSAMPLING (OPENGL_COMPOSITOR *aCompositor)
 
bool Init () override
 
unsigned int CreateBuffer () override
 
VECTOR2I GetInternalBufferSize () override
 
void OnLostBuffers () override
 
void Begin () override
 
void DrawBuffer (GLuint) override
 
void Present () override
 

Private Attributes

OPENGL_COMPOSITORcompositor
 
unsigned int ssaaMainBuffer
 
bool areBuffersCreated
 
bool areShadersCreated
 

Detailed Description

Definition at line 70 of file antialiasing.h.

Constructor & Destructor Documentation

◆ ANTIALIASING_SUPERSAMPLING()

ANTIALIASING_SUPERSAMPLING::ANTIALIASING_SUPERSAMPLING ( OPENGL_COMPOSITOR * aCompositor)

Definition at line 133 of file antialiasing.cpp.

References areBuffersCreated, areShadersCreated, compositor, and ssaaMainBuffer.

Member Function Documentation

◆ Begin()

void ANTIALIASING_SUPERSAMPLING::Begin ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 163 of file antialiasing.cpp.

References KIGFX::COLOR4D::BLACK, compositor, and ssaaMainBuffer.

◆ CreateBuffer()

unsigned int ANTIALIASING_SUPERSAMPLING::CreateBuffer ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 198 of file antialiasing.cpp.

References compositor, and GetInternalBufferSize().

◆ DrawBuffer()

void ANTIALIASING_SUPERSAMPLING::DrawBuffer ( GLuint aBuffer)
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 170 of file antialiasing.cpp.

References compositor, and ssaaMainBuffer.

◆ GetInternalBufferSize()

VECTOR2I ANTIALIASING_SUPERSAMPLING::GetInternalBufferSize ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 157 of file antialiasing.cpp.

References compositor.

Referenced by CreateBuffer().

◆ Init()

bool ANTIALIASING_SUPERSAMPLING::Init ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 140 of file antialiasing.cpp.

References areBuffersCreated, areShadersCreated, compositor, and ssaaMainBuffer.

◆ OnLostBuffers()

void ANTIALIASING_SUPERSAMPLING::OnLostBuffers ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 192 of file antialiasing.cpp.

References areBuffersCreated.

◆ Present()

void ANTIALIASING_SUPERSAMPLING::Present ( )
overridevirtual

Member Data Documentation

◆ areBuffersCreated

bool KIGFX::ANTIALIASING_SUPERSAMPLING::areBuffersCreated
private

Definition at line 89 of file antialiasing.h.

Referenced by ANTIALIASING_SUPERSAMPLING(), Init(), and OnLostBuffers().

◆ areShadersCreated

bool KIGFX::ANTIALIASING_SUPERSAMPLING::areShadersCreated
private

Definition at line 91 of file antialiasing.h.

Referenced by ANTIALIASING_SUPERSAMPLING(), and Init().

◆ compositor

OPENGL_COMPOSITOR* KIGFX::ANTIALIASING_SUPERSAMPLING::compositor
private

◆ ssaaMainBuffer

unsigned int KIGFX::ANTIALIASING_SUPERSAMPLING::ssaaMainBuffer
private

Definition at line 88 of file antialiasing.h.

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


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