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

Public Member Functions

void init (unsigned int shader_id)

Public Attributes

int view_matrix { -1 }
int projection_matrix { -1 }
int camera_position { -1 }
int positions_tex { -1 }
int height_width_angle_tex { -1 }
int colors_tex { -1 }
int segment_index_tex { -1 }
int reverse_order { -1 }
int instances_count { -1 }
int first_instance { -1 }
int clipping_plane { -1 }

Detailed Description

Member Function Documentation

◆ init()

void libvgcode::ViewerImpl::SegmentsUniforms::init ( unsigned int shader_id)
775{
776 view_matrix = glGetUniformLocation(shader_id, "view_matrix");
777 projection_matrix = glGetUniformLocation(shader_id, "projection_matrix");
778 camera_position = glGetUniformLocation(shader_id, "camera_position");
779 positions_tex = glGetUniformLocation(shader_id, "position_tex");
780 height_width_angle_tex = glGetUniformLocation(shader_id, "height_width_angle_tex");
781 colors_tex = glGetUniformLocation(shader_id, "color_tex");
782 segment_index_tex = glGetUniformLocation(shader_id, "segment_index_tex");
783 reverse_order = glGetUniformLocation(shader_id, "reverse_order");
784 instances_count = glGetUniformLocation(shader_id, "instances_count");
785 first_instance = glGetUniformLocation(shader_id, "first_instance");
786 // ORCA: section view
787 clipping_plane = glGetUniformLocation(shader_id, "clipping_plane");
788}
#define glGetUniformLocation
Definition gl.h:4049
int projection_matrix
Definition ViewerImpl.hpp:385
int clipping_plane
Definition ViewerImpl.hpp:394
int view_matrix
Definition ViewerImpl.hpp:384
int colors_tex
Definition ViewerImpl.hpp:389
int segment_index_tex
Definition ViewerImpl.hpp:390
int camera_position
Definition ViewerImpl.hpp:386
int height_width_angle_tex
Definition ViewerImpl.hpp:388
int instances_count
Definition ViewerImpl.hpp:392
int first_instance
Definition ViewerImpl.hpp:393
int reverse_order
Definition ViewerImpl.hpp:391
int positions_tex
Definition ViewerImpl.hpp:387

References camera_position, clipping_plane, colors_tex, first_instance, glGetUniformLocation, height_width_angle_tex, instances_count, positions_tex, projection_matrix, reverse_order, segment_index_tex, and view_matrix.

Member Data Documentation

◆ camera_position

int libvgcode::ViewerImpl::SegmentsUniforms::camera_position { -1 }
386{ -1 };

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

◆ clipping_plane

int libvgcode::ViewerImpl::SegmentsUniforms::clipping_plane { -1 }
394{ -1 };

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

◆ colors_tex

int libvgcode::ViewerImpl::SegmentsUniforms::colors_tex { -1 }
389{ -1 };

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

◆ first_instance

int libvgcode::ViewerImpl::SegmentsUniforms::first_instance { -1 }
393{ -1 };

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

◆ height_width_angle_tex

int libvgcode::ViewerImpl::SegmentsUniforms::height_width_angle_tex { -1 }
388{ -1 };

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

◆ instances_count

int libvgcode::ViewerImpl::SegmentsUniforms::instances_count { -1 }
392{ -1 };

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

◆ positions_tex

int libvgcode::ViewerImpl::SegmentsUniforms::positions_tex { -1 }
387{ -1 };

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

◆ projection_matrix

int libvgcode::ViewerImpl::SegmentsUniforms::projection_matrix { -1 }
385{ -1 };

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

◆ reverse_order

int libvgcode::ViewerImpl::SegmentsUniforms::reverse_order { -1 }
391{ -1 };

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

◆ segment_index_tex

int libvgcode::ViewerImpl::SegmentsUniforms::segment_index_tex { -1 }
390{ -1 };

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

◆ view_matrix

int libvgcode::ViewerImpl::SegmentsUniforms::view_matrix { -1 }
384{ -1 };

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


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