KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::CURSOR_UBO_DATA Struct Reference

Cursor uniform block matching the CursorUBO layout in cursor.frag (std140). More...

#include <frame_packet.h>

Public Attributes

float cursorPos [2] = {}
 NDC [-1, 1].
 
float viewport [2] = {}
 
float crosshairColor [4] = {}
 
float snapColor [4] = {}
 
float crosshairWidth = 1.0f
 
float snapRadius = 5.0f
 
int showSnap = 0
 
int cursorType = 1
 0 = small cross, 1 = fullscreen, 2 = diagonal 45°
 
float cursorSize = 80.0f
 small cross extent in pixels
 
float _pad0 [3] = {}
 

Detailed Description

Cursor uniform block matching the CursorUBO layout in cursor.frag (std140).

Definition at line 91 of file frame_packet.h.

Member Data Documentation

◆ _pad0

float KIGFX::CURSOR_UBO_DATA::_pad0[3] = {}

Definition at line 102 of file frame_packet.h.

◆ crosshairColor

float KIGFX::CURSOR_UBO_DATA::crosshairColor[4] = {}

Definition at line 95 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().

◆ crosshairWidth

float KIGFX::CURSOR_UBO_DATA::crosshairWidth = 1.0f

Definition at line 97 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().

◆ cursorPos

float KIGFX::CURSOR_UBO_DATA::cursorPos[2] = {}

NDC [-1, 1].

Definition at line 93 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().

◆ cursorSize

float KIGFX::CURSOR_UBO_DATA::cursorSize = 80.0f

small cross extent in pixels

Definition at line 101 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().

◆ cursorType

int KIGFX::CURSOR_UBO_DATA::cursorType = 1

0 = small cross, 1 = fullscreen, 2 = diagonal 45°

Definition at line 100 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().

◆ showSnap

int KIGFX::CURSOR_UBO_DATA::showSnap = 0

Definition at line 99 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().

◆ snapColor

float KIGFX::CURSOR_UBO_DATA::snapColor[4] = {}

Definition at line 96 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().

◆ snapRadius

float KIGFX::CURSOR_UBO_DATA::snapRadius = 5.0f

Definition at line 98 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().

◆ viewport

float KIGFX::CURSOR_UBO_DATA::viewport[2] = {}

Definition at line 94 of file frame_packet.h.

Referenced by KIGFX::GAL_MODERN::PopulateCursorUBO().


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