Class LinesProxy
Defined in File LinesProxy.h
Inheritance Relationships
Base Type
public mrpt::opengl::LinesProxyBase(Class LinesProxyBase)
Class Documentation
-
class LinesProxy : public mrpt::opengl::LinesProxyBase
GPU-side proxy for rendering lines and wireframes.
This proxy handles rendering of any CVisualObject that uses the WIREFRAME shader, such as:
CSetOfLines
CSimpleLine
CGridPlaneXY / CGridPlaneXZ
CAxis
Wireframe rendering of meshes
Any object derived from VisualObjectParams_Lines
The proxy manages:
Vertex buffer (line endpoints as pairs)
Color buffer (per-vertex RGBA colors)
Line rendering parameters (width, anti-aliasing)
VAO for efficient attribute binding
Line rendering features:
Line width in pixels: widths larger than one pixel are drawn as screen-aligned quads (see LinesProxyBase)
Per-vertex colors
Optional anti-aliasing of thick lines (edges faded in the fragment shader)
Alpha blending for transparency
Typical data flow:
compile(): Upload initial line vertices and colors to GPU
updateBuffers(): Re-upload when lines change
render(): Draw lines every frame
See also
LinesProxyBase, mrpt::viz::VisualObjectParams_Lines