Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TriFace Class Referencefinal

#include <TriFace.h>

Public Member Functions

 TriFace (std::size_t index, std::array< math::Vector3R, 3 > vertices)
 
void setTexCoords (std::array< math::Vector3R, 3 > texCoords)
 
void setShadingNormals (std::array< math::Vector3R, 3 > shadingNormals)
 
std::size_t getIndex () const
 
const std::array< math::Vector3R, 3 > & getVertices () const
 
const std::array< math::Vector3R, 3 > & getTexCoords () const
 
const std::array< math::Vector3R, 3 > & getShadingNormals () const
 
bool hasTexCoords () const
 
bool hasShadingNormals () const
 

Constructor & Destructor Documentation

◆ TriFace()

ph::TriFace::TriFace ( std::size_t index,
std::array< math::Vector3R, 3 > vertices )
inline

Member Function Documentation

◆ getIndex()

std::size_t ph::TriFace::getIndex ( ) const
inline

◆ getShadingNormals()

const std::array< math::Vector3R, 3 > & ph::TriFace::getShadingNormals ( ) const
inline

◆ getTexCoords()

const std::array< math::Vector3R, 3 > & ph::TriFace::getTexCoords ( ) const
inline

◆ getVertices()

const std::array< math::Vector3R, 3 > & ph::TriFace::getVertices ( ) const
inline

◆ hasShadingNormals()

bool ph::TriFace::hasShadingNormals ( ) const
inline

◆ hasTexCoords()

bool ph::TriFace::hasTexCoords ( ) const
inline

◆ setShadingNormals()

void ph::TriFace::setShadingNormals ( std::array< math::Vector3R, 3 > shadingNormals)
inline

◆ setTexCoords()

void ph::TriFace::setTexCoords ( std::array< math::Vector3R, 3 > texCoords)
inline

The documentation for this class was generated from the following file: