Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TPixelTexture2D< OutputType > Class Template Referenceabstract

#include <TPixelTexture2D.h>

Inheritance diagram for ph::TPixelTexture2D< OutputType >:
ph::TTexture< OutputType >

Public Member Functions

 TPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer)
 
 TPixelTexture2D (const std::shared_ptr< PixelBuffer2D > &pixelBuffer, pixel_texture::ESampleMode sampleMode, pixel_texture::EWrapMode wrapModeS, pixel_texture::EWrapMode wrapModeT)
 
void sample (const SampleLocation &sampleLocation, OutputType *out_value) const override=0
 
pixel_buffer::TPixel< float64 > samplePixelBuffer (const math::Vector2D &sampleUV) const
 
math::TVector2< uint32 > getSizePx () const
 
math::Vector2D getTexelSize () const
 
pixel_texture::ESampleMode getSampleMode () const
 
pixel_texture::EWrapMode getWrapModeS () const
 
pixel_texture::EWrapMode getWrapModeT () const
 
const PixelBuffer2DgetPixelBuffer () const
 
pixel_buffer::TPixel< float64 > samplePixelBufferNearest (const math::Vector2D &sampleUV) const
 
pixel_buffer::TPixel< float64 > samplePixelBufferBilinear (const math::Vector2D &sampleUV) const
 
- Public Member Functions inherited from ph::TTexture< OutputType >
 TTexture ()=default
 
virtual ~TTexture ()=default
 

Protected Member Functions

math::Vector2D sampleUVToST (const math::Vector2D &sampleUV) const
 

Additional Inherited Members

- Public Types inherited from ph::TTexture< OutputType >
using Output = OutputType
 

Constructor & Destructor Documentation

◆ TPixelTexture2D() [1/2]

template<typename OutputType >
ph::TPixelTexture2D< OutputType >::TPixelTexture2D ( const std::shared_ptr< PixelBuffer2D > & pixelBuffer)
inlineexplicit

◆ TPixelTexture2D() [2/2]

template<typename OutputType >
ph::TPixelTexture2D< OutputType >::TPixelTexture2D ( const std::shared_ptr< PixelBuffer2D > & pixelBuffer,
pixel_texture::ESampleMode sampleMode,
pixel_texture::EWrapMode wrapModeS,
pixel_texture::EWrapMode wrapModeT )
inline

Member Function Documentation

◆ getPixelBuffer()

template<typename OutputType >
const PixelBuffer2D * ph::TPixelTexture2D< OutputType >::getPixelBuffer ( ) const
inline

◆ getSampleMode()

template<typename OutputType >
pixel_texture::ESampleMode ph::TPixelTexture2D< OutputType >::getSampleMode ( ) const
inline

◆ getSizePx()

template<typename OutputType >
math::TVector2< uint32 > ph::TPixelTexture2D< OutputType >::getSizePx ( ) const
inline

◆ getTexelSize()

template<typename OutputType >
math::Vector2D ph::TPixelTexture2D< OutputType >::getTexelSize ( ) const
inline

◆ getWrapModeS()

template<typename OutputType >
pixel_texture::EWrapMode ph::TPixelTexture2D< OutputType >::getWrapModeS ( ) const
inline

◆ getWrapModeT()

template<typename OutputType >
pixel_texture::EWrapMode ph::TPixelTexture2D< OutputType >::getWrapModeT ( ) const
inline

◆ sample()

template<typename OutputType >
void ph::TPixelTexture2D< OutputType >::sample ( const SampleLocation & sampleLocation,
OutputType * out_value ) const
overridepure virtual

◆ samplePixelBuffer()

template<typename OutputType >
pixel_buffer::TPixel< float64 > ph::TPixelTexture2D< OutputType >::samplePixelBuffer ( const math::Vector2D & sampleUV) const
inline

◆ samplePixelBufferBilinear()

template<typename OutputType >
pixel_buffer::TPixel< float64 > ph::TPixelTexture2D< OutputType >::samplePixelBufferBilinear ( const math::Vector2D & sampleUV) const
inline

◆ samplePixelBufferNearest()

template<typename OutputType >
pixel_buffer::TPixel< float64 > ph::TPixelTexture2D< OutputType >::samplePixelBufferNearest ( const math::Vector2D & sampleUV) const
inline

◆ sampleUVToST()

template<typename OutputType >
math::Vector2D ph::TPixelTexture2D< OutputType >::sampleUVToST ( const math::Vector2D & sampleUV) const
inlineprotected

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