Flat list of triangles prepared for transformation and rasterization. More...
#include <mxvk/include/mxvk/mxvk_math.h>
Public Member Functions | |
| void | BuildRenderList (const Triangle &triangle) |
| Append one triangle to the render list. | |
| void | BuildRenderList (const Triangle &triangle) |
| Append one triangle to the render list. | |
| void | ModelToWorld (const vec4D &pos, int type) |
| Translate model-space vertices into world-space transformed vertices. | |
| void | ModelToWorld (const vec4D &pos, int type) |
| Translate model-space vertices into world-space transformed vertices. | |
| void | RemoveFaces (const vec4D &pos) |
| Mark back-facing triangles relative to a view position. | |
| void | RemoveFaces (const vec4D &pos) |
| Mark back-facing triangles relative to a view position. | |
| void | Reset () |
| Clear all triangles from the render list. | |
| void | Reset () |
| Clear all triangles from the render list. | |
| void | TransformRenderList (const Mat4D &mrot, int type) |
| Transform active non-backface triangles by a matrix. | |
| void | TransformRenderList (const Mat4D &mrot, int type) |
| Transform active non-backface triangles by a matrix. | |
Public Attributes | |
| int | num_polys = 0 |
| Cached polygon count matching polys.size(). | |
| std::vector< Triangle > | polys |
| Triangle storage. | |
Flat list of triangles prepared for transformation and rasterization.
Definition at line 1371 of file mxvk_math.h.
|
inline |
Append one triangle to the render list.
Definition at line 1432 of file mxvk_math.h.
|
inline |
Append one triangle to the render list.
Definition at line 1432 of file mxvk_math_eigen.hpp.
|
inline |
Translate model-space vertices into world-space transformed vertices.
Definition at line 1417 of file mxvk_math.h.
|
inline |
Translate model-space vertices into world-space transformed vertices.
Definition at line 1417 of file mxvk_math_eigen.hpp.
|
inline |
Mark back-facing triangles relative to a view position.
Definition at line 1401 of file mxvk_math.h.
|
inline |
Mark back-facing triangles relative to a view position.
Definition at line 1401 of file mxvk_math_eigen.hpp.
|
inline |
Clear all triangles from the render list.
Definition at line 1380 of file mxvk_math.h.
|
inline |
Clear all triangles from the render list.
Definition at line 1380 of file mxvk_math_eigen.hpp.
|
inline |
Transform active non-backface triangles by a matrix.
Definition at line 1386 of file mxvk_math.h.
|
inline |
Transform active non-backface triangles by a matrix.
Definition at line 1386 of file mxvk_math_eigen.hpp.
| int mxvk::RenderList::num_polys = 0 |
Cached polygon count matching polys.size().
Definition at line 1377 of file mxvk_math.h.
| std::vector< Triangle > mxvk::RenderList::polys |
Triangle storage.
Definition at line 1374 of file mxvk_math.h.