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 ( OPENGL_COMPOSITOR aCompositor)

Definition at line 41 of file antialiasing.cpp.

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

Member Function Documentation

void ANTIALIASING_NONE::Begin ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 78 of file antialiasing.cpp.

79 {
80  // Nothing to do
81 }
unsigned int ANTIALIASING_NONE::CreateBuffer ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 84 of file antialiasing.cpp.

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

85 {
87 }
OPENGL_COMPOSITOR * compositor
Definition: antialiasing.h:70
VECTOR2U GetScreenSize() const
virtual unsigned int CreateBuffer() override
Function CreateBuffer() prepares a new buffer that may be used as a rendering target.
void ANTIALIASING_NONE::DrawBuffer ( GLuint  aBuffer)
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 60 of file antialiasing.cpp.

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

61 {
63 }
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
VECTOR2U ANTIALIASING_NONE::GetInternalBufferSize ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 54 of file antialiasing.cpp.

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

55 {
56  return compositor->GetScreenSize();
57 }
OPENGL_COMPOSITOR * compositor
Definition: antialiasing.h:70
VECTOR2U GetScreenSize() const
bool ANTIALIASING_NONE::Init ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 47 of file antialiasing.cpp.

48 {
49  // Nothing to initialize
50  return true;
51 }
void ANTIALIASING_NONE::OnLostBuffers ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 72 of file antialiasing.cpp.

73 {
74  // Nothing to do
75 }
void ANTIALIASING_NONE::Present ( )
overridevirtual

Implements KIGFX::OPENGL_PRESENTOR.

Definition at line 66 of file antialiasing.cpp.

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

Member Data Documentation

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: