UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSlateVertex Struct Reference

#include <RenderingCommon.h>

Public Member Functions

 FSlateVertex ()
 
void SetTexCoords (const FVector4f InTexCoords)
 
void SetPosition (const FVector2f InPosition)
 

Static Public Member Functions

template<ESlateVertexRounding Rounding>
static FSlateVertex Make (const FSlateRenderTransform &RenderTransform, const FVector2f InLocalPosition, const FVector2f InTexCoord, const FVector2f InTexCoord2, const FColor InColor, const FColor SecondaryColor=FColor())
 
template<ESlateVertexRounding Rounding>
static FSlateVertex Make (const FSlateRenderTransform &RenderTransform, const FVector2f InLocalPosition, const FVector2f InTexCoord, const FColor &InColor, const FColor SecondaryColor=FColor())
 
template<ESlateVertexRounding Rounding>
static FSlateVertex Make (const FSlateRenderTransform &RenderTransform, const FVector2f InLocalPosition, const FVector4f InTexCoords, const FVector2f InMaterialTexCoords, const FColor InColor, const FColor SecondaryColor=FColor())
 
template<ESlateVertexRounding Rounding>
static FSlateVertex Make (const FSlateRenderTransform &RenderTransform, const FVector2f InLocalPosition, const FVector2f InLocalSize, float Scale, const FVector4f InTexCoords, const FColor InColor, const FColor SecondaryColor=FColor())
 
static FSlateVertex Make (const FSlateRenderTransform &RenderTransform, const FVector2f InLocalPosition, const FVector2f InTexCoord, const FVector2f InTexCoord2, const FColor InColor, const FColor SecondaryColor=FColor(), const ESlateVertexRounding InRounding=ESlateVertexRounding::Disabled)
 
static FSlateVertex Make (const FSlateRenderTransform &RenderTransform, const FVector2f InLocalPosition, const FVector2f InTexCoord, const FColor &InColor, const FColor SecondaryColor=FColor(), const ESlateVertexRounding InRounding=ESlateVertexRounding::Disabled)
 
static FSlateVertex Make (const FSlateRenderTransform &RenderTransform, const FVector2f InLocalPosition, const FVector4f InTexCoords, const FVector2f InMaterialTexCoords, const FColor InColor, const FColor SecondaryColor=FColor(), const ESlateVertexRounding InRounding=ESlateVertexRounding::Disabled)
 
static FSlateVertex Make (const FSlateRenderTransform &RenderTransform, const FVector2f InLocalPosition, const FVector2f InLocalSize, float Scale, const FVector4f InTexCoords, const FColor InColor, const FColor SecondaryColor=FColor(), const ESlateVertexRounding InRounding=ESlateVertexRounding::Disabled)
 

Public Attributes

float TexCoords [4]
 
FVector2f MaterialTexCoords
 
FVector2f Position
 
FColor Color
 
FColor SecondaryColor
 
uint16 PixelSize [2]
 

Detailed Description

A struct which defines a basic vertex seen by the Slate vertex buffers and shaders

Constructor & Destructor Documentation

◆ FSlateVertex()

FSlateVertex::FSlateVertex ( )
inline

Member Function Documentation

◆ Make() [1/8]

template<ESlateVertexRounding Rounding>
static FSlateVertex FSlateVertex::Make ( const FSlateRenderTransform RenderTransform,
const FVector2f  InLocalPosition,
const FVector2f  InLocalSize,
float  Scale,
const FVector4f  InTexCoords,
const FColor  InColor,
const FColor  SecondaryColor = FColor() 
)
inlinestatic

◆ Make() [2/8]

static FSlateVertex FSlateVertex::Make ( const FSlateRenderTransform RenderTransform,
const FVector2f  InLocalPosition,
const FVector2f  InLocalSize,
float  Scale,
const FVector4f  InTexCoords,
const FColor  InColor,
const FColor  SecondaryColor = FColor(),
const ESlateVertexRounding  InRounding = ESlateVertexRounding::Disabled 
)
inlinestatic

◆ Make() [3/8]

template<ESlateVertexRounding Rounding>
static FSlateVertex FSlateVertex::Make ( const FSlateRenderTransform RenderTransform,
const FVector2f  InLocalPosition,
const FVector2f  InTexCoord,
const FColor InColor,
const FColor  SecondaryColor = FColor() 
)
inlinestatic

◆ Make() [4/8]

static FSlateVertex FSlateVertex::Make ( const FSlateRenderTransform RenderTransform,
const FVector2f  InLocalPosition,
const FVector2f  InTexCoord,
const FColor InColor,
const FColor  SecondaryColor = FColor(),
const ESlateVertexRounding  InRounding = ESlateVertexRounding::Disabled 
)
inlinestatic

◆ Make() [5/8]

template<ESlateVertexRounding Rounding>
static FSlateVertex FSlateVertex::Make ( const FSlateRenderTransform RenderTransform,
const FVector2f  InLocalPosition,
const FVector2f  InTexCoord,
const FVector2f  InTexCoord2,
const FColor  InColor,
const FColor  SecondaryColor = FColor() 
)
inlinestatic

◆ Make() [6/8]

static FSlateVertex FSlateVertex::Make ( const FSlateRenderTransform RenderTransform,
const FVector2f  InLocalPosition,
const FVector2f  InTexCoord,
const FVector2f  InTexCoord2,
const FColor  InColor,
const FColor  SecondaryColor = FColor(),
const ESlateVertexRounding  InRounding = ESlateVertexRounding::Disabled 
)
inlinestatic

◆ Make() [7/8]

template<ESlateVertexRounding Rounding>
static FSlateVertex FSlateVertex::Make ( const FSlateRenderTransform RenderTransform,
const FVector2f  InLocalPosition,
const FVector4f  InTexCoords,
const FVector2f  InMaterialTexCoords,
const FColor  InColor,
const FColor  SecondaryColor = FColor() 
)
inlinestatic

◆ Make() [8/8]

static FSlateVertex FSlateVertex::Make ( const FSlateRenderTransform RenderTransform,
const FVector2f  InLocalPosition,
const FVector4f  InTexCoords,
const FVector2f  InMaterialTexCoords,
const FColor  InColor,
const FColor  SecondaryColor = FColor(),
const ESlateVertexRounding  InRounding = ESlateVertexRounding::Disabled 
)
inlinestatic

◆ SetPosition()

void FSlateVertex::SetPosition ( const FVector2f  InPosition)
inline

◆ SetTexCoords()

void FSlateVertex::SetTexCoords ( const FVector4f  InTexCoords)
inline

Member Data Documentation

◆ Color

FColor FSlateVertex::Color

Vertex color

◆ MaterialTexCoords

FVector2f FSlateVertex::MaterialTexCoords

Texture coordinates used as pass through to materials for custom texturing.

◆ PixelSize

uint16 FSlateVertex::PixelSize[2]

Local size of the element

◆ Position

FVector2f FSlateVertex::Position

Position of the vertex in window space

◆ SecondaryColor

FColor FSlateVertex::SecondaryColor

Secondary vertex color. Generally used for outlines

◆ TexCoords

float FSlateVertex::TexCoords[4]

Texture coordinates. The first 2 are in xy and the 2nd are in zw


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