KiCad PCB EDA Suite
KIGFX::ANTIALIASING_NONE Class Reference

#include <antialiasing.h>

Inheritance diagram for KIGFX::ANTIALIASING_NONE:
KIGFX::OPENGL_PRESENTOR

Public Member Functions

 ANTIALIASING_NONE (OPENGL_COMPOSITOR *aCompositor)
 
bool Init () override
 
unsigned int CreateBuffer () override
 
VECTOR2U GetInternalBufferSize () override
 
void OnLostBuffers () override
 
void Begin () override
 
void DrawBuffer (GLuint aBuffer) override
 
void Present () override
 

Private Attributes

OPENGL_COMPOSITORcompositor
 

Detailed Description

Definition at line 54 of file antialiasing.h.

Constructor & Destructor Documentation

◆ ANTIALIASING_NONE()

ANTIALIASING_NONE::ANTIALIASING_NONE ( OPENGL_COMPOSITOR aCompositor)

Definition at line 49 of file antialiasing.cpp.

49 :
50 compositor( aCompositor )
51{
52}
OPENGL_COMPOSITOR * compositor
Definition: antialiasing.h:70

Member Function Documentation

◆ Begin()

void ANTIALIASING_NONE::Begin ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 86 of file antialiasing.cpp.

87{
88 // Nothing to do
89}

◆ CreateBuffer()

unsigned int ANTIALIASING_NONE::CreateBuffer ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 92 of file antialiasing.cpp.

93{
95}
virtual unsigned int CreateBuffer() override
Prepare a new buffer that may be used as a rendering target.

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

◆ DrawBuffer()

void ANTIALIASING_NONE::DrawBuffer ( GLuint  aBuffer)
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 68 of file antialiasing.cpp.

69{
71}
static const unsigned int DIRECT_RENDERING
virtual void DrawBuffer(unsigned int aBufferHandle) override
Draw the selected buffer to the output buffer.

References compositor, KIGFX::OPENGL_COMPOSITOR::DIRECT_RENDERING, and KIGFX::OPENGL_COMPOSITOR::DrawBuffer().

◆ GetInternalBufferSize()

VECTOR2U ANTIALIASING_NONE::GetInternalBufferSize ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 62 of file antialiasing.cpp.

63{
64 return compositor->GetScreenSize();
65}

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

◆ Init()

bool ANTIALIASING_NONE::Init ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 55 of file antialiasing.cpp.

56{
57 // Nothing to initialize
58 return true;
59}

◆ OnLostBuffers()

void ANTIALIASING_NONE::OnLostBuffers ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 80 of file antialiasing.cpp.

81{
82 // Nothing to do
83}

◆ Present()

void ANTIALIASING_NONE::Present ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 74 of file antialiasing.cpp.

75{
76 // Nothing to present, draw_buffer already drew to the screen
77}

Member Data Documentation

◆ compositor

OPENGL_COMPOSITOR* KIGFX::ANTIALIASING_NONE::compositor
private

Definition at line 70 of file antialiasing.h.

Referenced by CreateBuffer(), DrawBuffer(), and GetInternalBufferSize().


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