MAGE  v0.171.0
Matthias Advanced Game Engine
mage::rendering::VertexPositionNormal Struct Reference

#include <vertex.hpp>

Static Public Member Functions

static constexpr bool HasPosition () noexcept
 
static constexpr bool HasNormal () noexcept
 
static constexpr bool HasTexture () noexcept
 
static constexpr bool HasColor () noexcept
 

Public Attributes

Point3 m_p
 
Normal3 m_n
 

Static Public Attributes

static const D3D11_INPUT_ELEMENT_DESC s_input_element_descs [2u]
 

Detailed Description

A struct of vertices containing position and normal coordinates.

Member Function Documentation

◆ HasColor()

static constexpr bool mage::rendering::VertexPositionNormal::HasColor ( )
staticnoexcept

Checks whether vertices have a color.

Returns
true if vertices have a color. false otherwise.

◆ HasNormal()

static constexpr bool mage::rendering::VertexPositionNormal::HasNormal ( )
staticnoexcept

Checks whether vertices have a normal.

Returns
true if vertices have a normal. false otherwise.

◆ HasPosition()

static constexpr bool mage::rendering::VertexPositionNormal::HasPosition ( )
staticnoexcept

Checks whether vertices have a position.

Returns
true if vertices have a position. false otherwise.

◆ HasTexture()

static constexpr bool mage::rendering::VertexPositionNormal::HasTexture ( )
staticnoexcept

Checks whether vertices have a texture.

Returns
true if vertices have a texture. false otherwise.

Member Data Documentation

◆ m_n

Normal3 mage::rendering::VertexPositionNormal::m_n

The normal of this vertex.

◆ m_p

Point3 mage::rendering::VertexPositionNormal::m_p

The position of this vertex.

◆ s_input_element_descs

const D3D11_INPUT_ELEMENT_DESC mage::rendering::VertexPositionNormal::s_input_element_descs
static
Initial value:
= {
{ g_vertex_semantic_name_position, 0u, DXGI_FORMAT_R32G32B32_FLOAT, 0u, D3D11_APPEND_ALIGNED_ELEMENT, D3D11_INPUT_PER_VERTEX_DATA, 0u },
{ g_vertex_semantic_name_normal, 0u, DXGI_FORMAT_R32G32B32_FLOAT, 0u, D3D11_APPEND_ALIGNED_ELEMENT, D3D11_INPUT_PER_VERTEX_DATA, 0u }
}

The input element descriptors of a vertex.