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 74 of file antialiasing.h.

Constructor & Destructor Documentation

◆ ANTIALIASING_SUPERSAMPLING()

ANTIALIASING_SUPERSAMPLING::ANTIALIASING_SUPERSAMPLING ( OPENGL_COMPOSITOR * aCompositor)

Definition at line 137 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 167 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 202 of file antialiasing.cpp.

References compositor, and GetInternalBufferSize().

◆ DrawBuffer()

void ANTIALIASING_SUPERSAMPLING::DrawBuffer ( GLuint aBuffer)
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 174 of file antialiasing.cpp.

References compositor, and ssaaMainBuffer.

◆ GetInternalBufferSize()

VECTOR2I ANTIALIASING_SUPERSAMPLING::GetInternalBufferSize ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 161 of file antialiasing.cpp.

References compositor.

Referenced by CreateBuffer().

◆ Init()

bool ANTIALIASING_SUPERSAMPLING::Init ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 144 of file antialiasing.cpp.

References areBuffersCreated, areShadersCreated, compositor, and ssaaMainBuffer.

◆ OnLostBuffers()

void ANTIALIASING_SUPERSAMPLING::OnLostBuffers ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 196 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 93 of file antialiasing.h.

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

◆ areShadersCreated

bool KIGFX::ANTIALIASING_SUPERSAMPLING::areShadersCreated
private

Definition at line 95 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 92 of file antialiasing.h.

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


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