OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
libvgcode::ViewerImpl::LayerColorsUniforms Struct Reference

Public Member Functions

void init (unsigned int shader_id)

Public Attributes

int lit_layers { -1 }
int grey_below_layer { -1 }
int dim_brightness { -1 }
int kept_vertex { -1 }

Detailed Description

Member Function Documentation

◆ init()

void libvgcode::ViewerImpl::LayerColorsUniforms::init ( unsigned int shader_id)
1422{
1423 lit_layers = glGetUniformLocation(shader_id, "lit_layers");
1424 grey_below_layer = glGetUniformLocation(shader_id, "grey_below_layer");
1425 dim_brightness = glGetUniformLocation(shader_id, "dim_brightness");
1426 kept_vertex = glGetUniformLocation(shader_id, "kept_vertex");
1427}
#define glGetUniformLocation
Definition gl.h:4049
int lit_layers
Definition ViewerImpl.hpp:411
int kept_vertex
Definition ViewerImpl.hpp:414
int grey_below_layer
Definition ViewerImpl.hpp:412
int dim_brightness
Definition ViewerImpl.hpp:413

References dim_brightness, glGetUniformLocation, grey_below_layer, kept_vertex, and lit_layers.

Member Data Documentation

◆ dim_brightness

int libvgcode::ViewerImpl::LayerColorsUniforms::dim_brightness { -1 }
413{ -1 };

Referenced by init(), and libvgcode::ViewerImpl::set_layer_colors().

◆ grey_below_layer

int libvgcode::ViewerImpl::LayerColorsUniforms::grey_below_layer { -1 }
412{ -1 };

Referenced by init(), and libvgcode::ViewerImpl::set_layer_colors().

◆ kept_vertex

int libvgcode::ViewerImpl::LayerColorsUniforms::kept_vertex { -1 }
414{ -1 };

Referenced by init(), and libvgcode::ViewerImpl::set_layer_colors().

◆ lit_layers

int libvgcode::ViewerImpl::LayerColorsUniforms::lit_layers { -1 }
411{ -1 };

Referenced by init(), and libvgcode::ViewerImpl::set_layer_colors().


The documentation for this struct was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/ViewerImpl.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/ViewerImpl.cpp