KiCad PCB EDA Suite
Loading...
Searching...
No Matches
rhi_instance.h File Reference
#include <rhi/rhi_vertex.h>
#include <cstdint>

Go to the source code of this file.

Classes

struct  RHI_INSTANCE
 Per-instance data for instanced 2D rendering, packed into 40 bytes. More...
 

Enumerations

enum  RHI_INSTANCE_FLAG : uint16_t {
  RHI_INSTANCE_NEGATIVE = 1 << 3 , RHI_INSTANCE_SCREEN_SPACE = 1 << 4 , RHI_INSTANCE_GROW_OUTWARD = 1 << 5 , RHI_INSTANCE_FADE_SMALL = 1 << 6 ,
  RHI_INSTANCE_HARD_EDGE = 1 << 7 , RHI_INSTANCE_UNDIMMED = 1 << 8 , RHI_INSTANCE_PIXEL_CIRCLE = 1 << 9 , RHI_INSTANCE_OVERLAY_ALPHA = 1 << 10 ,
  RHI_INSTANCE_SCALE_LOD = 1 << 11 , RHI_INSTANCE_LENGTH_PAD = 1 << 14 , RHI_INSTANCE_BITMAP_GLYPH = 1 << 15
}
 Instance flags controlling how the shaders draw an element. More...
 

Functions

RHI_VERTEX_BUFFER_LAYOUT_DESC RhiInstanceLayout ()
 Per-instance vertex layout of RHI_INSTANCE, starting at location 3 after the RHI_VERTEX attributes.
 

Enumeration Type Documentation

◆ RHI_INSTANCE_FLAG

enum RHI_INSTANCE_FLAG : uint16_t

Instance flags controlling how the shaders draw an element.

Enumerator
RHI_INSTANCE_NEGATIVE 
RHI_INSTANCE_SCREEN_SPACE 
RHI_INSTANCE_GROW_OUTWARD 

a PIXEL_CIRCLE stroke grows outward from its inner edge

RHI_INSTANCE_FADE_SMALL 

text stroke that fades as its glyph height (param 2) shrinks

RHI_INSTANCE_HARD_EDGE 

no antialiased edge, for layers that take a pixel once

RHI_INSTANCE_UNDIMMED 

keeps its colour when its layer is dimmed

RHI_INSTANCE_PIXEL_CIRCLE 

a circle on whole pixels, as the OpenGL canvas draws it

RHI_INSTANCE_OVERLAY_ALPHA 

premultiplied with alpha squared, as the OpenGL overlay leaves it

RHI_INSTANCE_SCALE_LOD 

a track shown only while the view scale is above param 3

RHI_INSTANCE_LENGTH_PAD 

a track longer at each end by param 2 pixels

RHI_INSTANCE_BITMAP_GLYPH 

a track that draws the bitmap font glyph named by param 2

Definition at line 31 of file rhi_instance.h.

Function Documentation

◆ RhiInstanceLayout()