MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk::Triangle Struct Reference

Triangle primitive used by the simple software rendering pipeline. More...

#include <mxvk/include/mxvk/mxvk_math.h>

Public Attributes

int attr = 0
 Application-defined polygon attributes.
MXCOLOR color = MXVK_RGB(255, 255, 255)
 Triangle color.
int material_index = -1
 Index of the OBJ/MTL material used by this triangle, or -1.
std::string material_name
 Wavefront material name retained for later MTL replacement.
std::string source_object_name
 Wavefront object name from the o section containing this triangle.
int state = 0
 Polygon state flags.
vec4D tlist [3] {}
 Transformed vertex positions.
int vert [3] {}
 Indices into an object's vertex arrays.
vec4D vlist [3] {}
 Working vertex positions.

Detailed Description

Triangle primitive used by the simple software rendering pipeline.

Definition at line 1326 of file mxvk_math.h.

Member Data Documentation

◆ attr

int mxvk::Triangle::attr = 0

Application-defined polygon attributes.

Definition at line 1337 of file mxvk_math.h.

◆ color

MXCOLOR mxvk::Triangle::color = MXVK_RGB(255, 255, 255)

Triangle color.

Definition at line 1334 of file mxvk_math.h.

◆ material_index

int mxvk::Triangle::material_index = -1

Index of the OBJ/MTL material used by this triangle, or -1.

Definition at line 1346 of file mxvk_math.h.

◆ material_name

std::string mxvk::Triangle::material_name

Wavefront material name retained for later MTL replacement.

Definition at line 1349 of file mxvk_math.h.

◆ source_object_name

std::string mxvk::Triangle::source_object_name

Wavefront object name from the o section containing this triangle.

Definition at line 1352 of file mxvk_math.h.

◆ state

int mxvk::Triangle::state = 0

Polygon state flags.

Definition at line 1340 of file mxvk_math.h.

◆ tlist

vec4D mxvk::Triangle::tlist {}

Transformed vertex positions.

Definition at line 1331 of file mxvk_math.h.

1331{};

◆ vert

int mxvk::Triangle::vert {}

Indices into an object's vertex arrays.

Definition at line 1343 of file mxvk_math.h.

1343{};

◆ vlist

vec4D mxvk::Triangle::vlist {}

Working vertex positions.

Definition at line 1328 of file mxvk_math.h.

1328{};

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