FSlateVertex

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

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h

Include

#include "Rendering/RenderingCommon.h"

Syntax

struct FSlateVertex

Remarks

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

Variables

Name Description

Public variable

FColor

 

Color

Vertex color

Public variable

FVector2f

 

MaterialTexCoords

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

Public variable

uint16[2]

 

PixelSize

Local size of the element

Public variable

FVector2f

 

Position

Position of the vertex in window space

Public variable

FColor

 

SecondaryColor

Secondary vertex color. Generally used for outlines

Public variable

float[4]

 

TexCoords

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

Constructors

Name Description

Public function

FSlateVertex()

Functions

Name Description

Public function Static

FSlateVertex

 

Make

(
    const FSlateRenderTransform& Rende...,
    const FVector2f InLocalPosition,
    const FVector2f InTexCoord,
    const FColor& InColor,
    const FColor SecondaryColor
)

Public function Static

FSlateVertex

 

Make

(
    const FSlateRenderTransform& Rende...,
    const FVector2f InLocalPosition,
    const FVector2f InTexCoord,
    const FVector2f InTexCoord2,
    const FColor InColor,
    const FColor SecondaryColor
)

Public function Static

FSlateVertex

 

Make

(
    const FSlateRenderTransform& Rende...,
    const FVector2f InLocalPosition,
    const FVector4f InTexCoords,
    const FVector2f InMaterialTexCoords,
    const FColor InColor,
    const FColor SecondaryColor
)

Public function Static

FSlateVertex

 

Make

(
    const FSlateRenderTransform& Rende...,
    const FVector2f InLocalPosition,
    const FVector2f InLocalSize,
    float Scale,
    const FVector4f InTexCoords,
    const FColor InColor,
    const FColor SecondaryColor
)

Public function

void

 

SetPosition

(
    const FVector2f InPosition
)

Public function

void

 

SetTexCoords

(
    const FVector4f InTexCoords
)