10template<
typename T, std::
size_t N>
23 PH_ASSERT(w != 0 && h != 0);
32 uint32 x =
static_cast<uint32
>(normU * w);
33 uint32 y =
static_cast<uint32
>(normV * h);
34 x = x < w ? x : w - 1;
35 y = y < h ? y : h - 1;
Definition SampleLocation.h:22
math::Vector3R uvw() const
Gets and sets the uvw coordinates of this sample location.
Definition SampleLocation.h:90
uint32 getWidthPx() const
Definition TAbstractPixelTex2D.h:39
uint32 getHeightPx() const
Definition TAbstractPixelTex2D.h:40
void normalizeUV(const float64 u, const float64 v, float64 *const out_u, float64 *const out_v) const
Definition TAbstractPixelTex2D.h:52
Definition TNearestPixelTex2D.h:12
void sample(const SampleLocation &sampleLocation, TTexPixel< T, N > *const out_value) const override
Definition TNearestPixelTex2D.h:16
Definition TPixelTex2D.h:16
void getPixel(const uint32 x, const uint32 y, TTexPixel< T, N > *const out_pixel) const
Definition TPixelTex2D.h:40
TPixelTex2D()
Definition TPixelTex2D.h:18
Definition TArithmeticArray.h:13
T & y()
Definition TVector3.ipp:189
T & x()
Definition TVector3.ipp:183
Miscellaneous math utilities.
The root for all renderer implementations.
Definition EEngineProject.h:6