FSlateVertex

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

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

FVector2D

 

MaterialTexCoords

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

Public variable

uint16[2]

 

PixelSize

Local size of the element

Public variable

FVector2D

 

Position

Position of the vertex in window space

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 FVector2D& InLocalPosition,
    const FVector2D& InTexCoord,
    const FColor& InColor
)

Public function Static

FSlateVertex

 

Make

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

Public function Static

FSlateVertex

 

Make

(
    const FSlateRenderTransform& Rende...,
    const FVector2D& InLocalPosition,
    const FVector4& InTexCoords,
    const FVector2D& InMaterialTexCoor...,
    const FColor& InColor
)

Public function Static

FSlateVertex

 

Make

(
    const FSlateRenderTransform& Rende...,
    const FVector2D& InLocalPosition,
    const FVector2D& InLocalSize,
    float Scale,
    const FVector4& InTexCoords,
    const FColor& InColor
)

Public function

void

 

SetPosition

(
    const FVector2D& InPosition
)

Public function

void

 

SetTexCoords

(
    const FVector4& InTexCoords
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss