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 42 of file antialiasing.cpp.

43  : compositor( aCompositor )
44 {
45 }
OPENGL_COMPOSITOR * compositor
Definition: antialiasing.h:70

Member Function Documentation

◆ Begin()

void ANTIALIASING_NONE::Begin ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 79 of file antialiasing.cpp.

80 {
81  // Nothing to do
82 }

◆ CreateBuffer()

unsigned int ANTIALIASING_NONE::CreateBuffer ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 85 of file antialiasing.cpp.

86 {
88 }
OPENGL_COMPOSITOR * compositor
Definition: antialiasing.h:70
virtual unsigned int CreateBuffer() override
Function CreateBuffer() prepares 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 61 of file antialiasing.cpp.

62 {
64 }
virtual void DrawBuffer(unsigned int aBufferHandle) override
Function DrawBuffer() draws the selected buffer to the output buffer.
static const unsigned int DIRECT_RENDERING
OPENGL_COMPOSITOR * compositor
Definition: antialiasing.h:70

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 55 of file antialiasing.cpp.

56 {
57  return compositor->GetScreenSize();
58 }
OPENGL_COMPOSITOR * compositor
Definition: antialiasing.h:70

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

◆ Init()

bool ANTIALIASING_NONE::Init ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 48 of file antialiasing.cpp.

49 {
50  // Nothing to initialize
51  return true;
52 }

◆ OnLostBuffers()

void ANTIALIASING_NONE::OnLostBuffers ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 73 of file antialiasing.cpp.

74 {
75  // Nothing to do
76 }

◆ Present()

void ANTIALIASING_NONE::Present ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 67 of file antialiasing.cpp.

68 {
69  // Nothing to present, draw_buffer already drew to the screen
70 }

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: