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

#include <gpu_manager.h>

Inheritance diagram for KIGFX::GPU_NONCACHED_MANAGER:
KIGFX::GPU_MANAGER

Public Member Functions

 GPU_NONCACHED_MANAGER (VERTEX_CONTAINER *aContainer)
 
virtual void BeginDrawing () override
 Prepare the stored data to be drawn.
 
virtual void DrawIndices (const VERTEX_ITEM *aItem) override
 Make the GPU draw given range of vertices.
 
virtual void EndDrawing () override
 Clear the container after drawing routines.
 
virtual void SetShader (SHADER &aShader)
 Allow using shaders with the stored data.
 
void EnableDepthTest (bool aEnabled)
 Enable/disable Z buffer depth test.
 

Static Public Member Functions

static GPU_MANAGER * MakeManager (VERTEX_CONTAINER *aContainer)
 

Protected Attributes

bool m_isDrawing
 Drawing status flag.
 
VERTEX_CONTAINER * m_container
 Container that stores vertices data.
 
SHADER * m_shader
 Shader handling.
 
int m_shaderAttrib
 Location of shader attributes (for glVertexAttribPointer)
 
bool m_enableDepthTest
 true: enable Z test when drawing
 

Detailed Description

Definition at line 166 of file gpu_manager.h.

Constructor & Destructor Documentation

◆ GPU_NONCACHED_MANAGER()

GPU_NONCACHED_MANAGER::GPU_NONCACHED_MANAGER ( VERTEX_CONTAINER * aContainer)

Definition at line 258 of file gpu_manager.cpp.

References KIGFX::GPU_MANAGER::GPU_MANAGER().

Member Function Documentation

◆ BeginDrawing()

void GPU_NONCACHED_MANAGER::BeginDrawing ( )
overridevirtual

Prepare the stored data to be drawn.

Implements KIGFX::GPU_MANAGER.

Definition at line 264 of file gpu_manager.cpp.

◆ DrawIndices()

void GPU_NONCACHED_MANAGER::DrawIndices ( const VERTEX_ITEM * aItem)
overridevirtual

Make the GPU draw given range of vertices.

Parameters
aItemis the vertex item to draw.

Implements KIGFX::GPU_MANAGER.

Definition at line 270 of file gpu_manager.cpp.

◆ EnableDepthTest()

void GPU_MANAGER::EnableDepthTest ( bool aEnabled)
inherited

Enable/disable Z buffer depth test.

Definition at line 336 of file gpu_manager.cpp.

References m_enableDepthTest.

◆ EndDrawing()

◆ MakeManager()

GPU_MANAGER * GPU_MANAGER::MakeManager ( VERTEX_CONTAINER * aContainer)
staticinherited

◆ SetShader()

void GPU_MANAGER::SetShader ( SHADER & aShader)
virtualinherited

Allow using shaders with the stored data.

Parameters
aShaderis the object that allows using shaders.

Definition at line 68 of file gpu_manager.cpp.

References DisplayError(), m_shader, and m_shaderAttrib.

Member Data Documentation

◆ m_container

VERTEX_CONTAINER* KIGFX::GPU_MANAGER::m_container
protectedinherited

Container that stores vertices data.

Definition at line 84 of file gpu_manager.h.

Referenced by KIGFX::GPU_CACHED_MANAGER::EndDrawing(), KIGFX::GPU_NONCACHED_MANAGER::EndDrawing(), and GPU_MANAGER().

◆ m_enableDepthTest

bool KIGFX::GPU_MANAGER::m_enableDepthTest
protectedinherited

true: enable Z test when drawing

Definition at line 93 of file gpu_manager.h.

Referenced by EnableDepthTest(), KIGFX::GPU_CACHED_MANAGER::EndDrawing(), KIGFX::GPU_NONCACHED_MANAGER::EndDrawing(), and GPU_MANAGER().

◆ m_isDrawing

bool KIGFX::GPU_MANAGER::m_isDrawing
protectedinherited

◆ m_shader

SHADER* KIGFX::GPU_MANAGER::m_shader
protectedinherited

◆ m_shaderAttrib

int KIGFX::GPU_MANAGER::m_shaderAttrib
protectedinherited

Location of shader attributes (for glVertexAttribPointer)

Definition at line 90 of file gpu_manager.h.

Referenced by KIGFX::GPU_CACHED_MANAGER::EndDrawing(), KIGFX::GPU_NONCACHED_MANAGER::EndDrawing(), GPU_MANAGER(), and SetShader().


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