Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TPixelTex2D< T, N > Class Template Referenceabstract

#include <TPixelTex2D.h>

Inheritance diagram for ph::TPixelTex2D< T, N >:
ph::TAbstractPixelTex2D< T, N > ph::TTexture< TTexPixel< T, N > > ph::TBilinearPixelTex2D< T, N > ph::TNearestPixelTex2D< T, N >

Public Member Functions

 TPixelTex2D ()
 
 TPixelTex2D (const TFrame< T, N > &frame)
 
 TPixelTex2D (TFrame< T, N > &&frame)
 
void sample (const SampleLocation &sampleLocation, TTexPixel< T, N > *out_value) const override=0
 
void getPixel (const uint32 x, const uint32 y, TTexPixel< T, N > *const out_pixel) const
 
void setPixels (const TFrame< T, N > &frame)
 
- Public Member Functions inherited from ph::TAbstractPixelTex2D< T, N >
 TAbstractPixelTex2D ()
 
 TAbstractPixelTex2D (const uint32 widthPx, const uint32 heightPx)
 
uint32 getWidthPx () const
 
uint32 getHeightPx () const
 
float64 getTexelSizeU () const
 
float64 getTexelSizeV () const
 
ETexWrapMode getWrapMode () const
 
void setWrapMode (const ETexWrapMode mode)
 
- Public Member Functions inherited from ph::TTexture< TTexPixel< T, N > >
 TTexture ()=default
 
virtual ~TTexture ()=default
 
virtual void sample (const SampleLocation &sampleLocation, Output *out_value) const=0
 

Additional Inherited Members

- Public Types inherited from ph::TTexture< TTexPixel< T, N > >
using Output
 
- Protected Member Functions inherited from ph::TAbstractPixelTex2D< T, N >
void normalizeUV (const float64 u, const float64 v, float64 *const out_u, float64 *const out_v) const
 
void setWidthPx (const uint32 widthPx)
 
void setHeightPx (const uint32 heightPx)
 
- Protected Attributes inherited from ph::TAbstractPixelTex2D< T, N >
uint32 m_widthPx
 
uint32 m_heightPx
 
float64 m_texelSizeU
 
float64 m_texelSizeV
 
ETexWrapMode m_wrapMode
 

Constructor & Destructor Documentation

◆ TPixelTex2D() [1/3]

template<typename T , std::size_t N>
ph::TPixelTex2D< T, N >::TPixelTex2D ( )
inline

◆ TPixelTex2D() [2/3]

template<typename T , std::size_t N>
ph::TPixelTex2D< T, N >::TPixelTex2D ( const TFrame< T, N > & frame)
inlineexplicit

◆ TPixelTex2D() [3/3]

template<typename T , std::size_t N>
ph::TPixelTex2D< T, N >::TPixelTex2D ( TFrame< T, N > && frame)
inlineexplicit

Member Function Documentation

◆ getPixel()

template<typename T , std::size_t N>
void ph::TPixelTex2D< T, N >::getPixel ( const uint32 x,
const uint32 y,
TTexPixel< T, N > *const out_pixel ) const
inline

◆ sample()

template<typename T , std::size_t N>
void ph::TPixelTex2D< T, N >::sample ( const SampleLocation & sampleLocation,
TTexPixel< T, N > * out_value ) const
overridepure virtual

◆ setPixels()

template<typename T , std::size_t N>
void ph::TPixelTex2D< T, N >::setPixels ( const TFrame< T, N > & frame)
inline

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