KiCad PCB EDA Suite
Loading...
Searching...
No Matches
OPENGL_RENDER_LIST_DEFERRED Class Reference

Allows to defer the creation of the OpenGL render list until it is needed. More...

#include <layer_triangles.h>

Public Member Functions

 OPENGL_RENDER_LIST_DEFERRED (std::shared_ptr< TRIANGLE_DISPLAY_LIST > aLayerTriangles, GLuint aTextureIndexForSegEnds, float aZBot, float aZTop, bool aTransparent=false)
 
 ~OPENGL_RENDER_LIST_DEFERRED ()
 
void MakeShared ()
 
void Reset ()
 
std::shared_ptr< OPENGL_RENDER_LISTMakeOrGet ()
 

Private Attributes

std::shared_ptr< OPENGL_RENDER_LISTm_openglRenderList
 
std::recursive_mutex m_mutex
 
std::shared_ptr< TRIANGLE_DISPLAY_LISTm_layerTriangles
 
GLuint m_textureIndexForSegEnds { 0 }
 
float m_zBot { 0 }
 
float m_zTop { 0 }
 
bool m_defaultTransparent { false }
 

Detailed Description

Allows to defer the creation of the OpenGL render list until it is needed.

Definition at line 241 of file layer_triangles.h.

Constructor & Destructor Documentation

◆ OPENGL_RENDER_LIST_DEFERRED()

OPENGL_RENDER_LIST_DEFERRED::OPENGL_RENDER_LIST_DEFERRED ( std::shared_ptr< TRIANGLE_DISPLAY_LIST > aLayerTriangles,
GLuint aTextureIndexForSegEnds,
float aZBot,
float aZTop,
bool aTransparent = false )
inline

◆ ~OPENGL_RENDER_LIST_DEFERRED()

OPENGL_RENDER_LIST_DEFERRED::~OPENGL_RENDER_LIST_DEFERRED ( )
inline

Definition at line 254 of file layer_triangles.h.

Member Function Documentation

◆ MakeOrGet()

std::shared_ptr< OPENGL_RENDER_LIST > OPENGL_RENDER_LIST_DEFERRED::MakeOrGet ( )
inline

Definition at line 282 of file layer_triangles.h.

References m_layerTriangles, m_mutex, m_openglRenderList, and MakeShared().

◆ MakeShared()

void OPENGL_RENDER_LIST_DEFERRED::MakeShared ( )
inline

◆ Reset()

void OPENGL_RENDER_LIST_DEFERRED::Reset ( )
inline

Definition at line 274 of file layer_triangles.h.

References m_layerTriangles, m_mutex, and m_openglRenderList.

Member Data Documentation

◆ m_defaultTransparent

bool OPENGL_RENDER_LIST_DEFERRED::m_defaultTransparent { false }
private

Definition at line 300 of file layer_triangles.h.

Referenced by MakeShared(), and OPENGL_RENDER_LIST_DEFERRED().

◆ m_layerTriangles

std::shared_ptr<TRIANGLE_DISPLAY_LIST> OPENGL_RENDER_LIST_DEFERRED::m_layerTriangles
private

Definition at line 296 of file layer_triangles.h.

Referenced by MakeOrGet(), MakeShared(), OPENGL_RENDER_LIST_DEFERRED(), and Reset().

◆ m_mutex

std::recursive_mutex OPENGL_RENDER_LIST_DEFERRED::m_mutex
private

Definition at line 294 of file layer_triangles.h.

Referenced by MakeOrGet(), MakeShared(), and Reset().

◆ m_openglRenderList

std::shared_ptr<OPENGL_RENDER_LIST> OPENGL_RENDER_LIST_DEFERRED::m_openglRenderList
private

Definition at line 293 of file layer_triangles.h.

Referenced by MakeOrGet(), MakeShared(), and Reset().

◆ m_textureIndexForSegEnds

GLuint OPENGL_RENDER_LIST_DEFERRED::m_textureIndexForSegEnds { 0 }
private

Definition at line 297 of file layer_triangles.h.

Referenced by MakeShared(), and OPENGL_RENDER_LIST_DEFERRED().

◆ m_zBot

float OPENGL_RENDER_LIST_DEFERRED::m_zBot { 0 }
private

Definition at line 298 of file layer_triangles.h.

Referenced by MakeShared(), and OPENGL_RENDER_LIST_DEFERRED().

◆ m_zTop

float OPENGL_RENDER_LIST_DEFERRED::m_zTop { 0 }
private

Definition at line 299 of file layer_triangles.h.

Referenced by MakeShared(), and OPENGL_RENDER_LIST_DEFERRED().


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