The blo Library
Loading...
Searching...
No Matches
Namespaces | Functions
compGraphics.h File Reference

Computer graphics functions. More...

#include "defs.h"
#include "compGraphics.inl"

Namespaces

namespace  blo
 The blo library.
 

Functions

template<size_t C, typename T , typename U >
void blo::lambertianShading (const SmallMatrix< T, 3, 1 > &srcLightSource, const SmallMatrix< T, 3, 1 > &srcNormal, const U srcAlbedo[], U dstReflectedIntensity[])
 Calculate Lambertian shading.
 
template<size_t C, typename T , typename U >
void blo::lambertianShading (const Point< T, 3 > &srcLightSource, const U &srcLightSourceIntensity, const Point< T, 3 > &src, const SmallMatrix< T, 3, 1 > &srcNormal, const U srcAlbedo[], U dstReflectedIntensity[])
 Calculate Lambertian shading.
 
template<size_t C, typename T , typename U >
void blo::lambertianShading (const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcNormal, const U srcAlbedo[], U dstReflectedIntensity[])
 Calculate Lambertian shading.
 
template<size_t C, typename T , typename U >
void blo::lambertianShading (const Point< T, 3 > &srcLightSource, const U srcLightSourceIntensity[], const Point< T, 3 > &src, const SmallMatrix< T, 3, 1 > &srcNormal, const U srcAlbedo[], U dstReflectedIntensity[])
 Calculate Lambertian shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcNormal, const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcNormal, const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const U &srcAmbientLightIntensity, const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcNormal, const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const U &srcAmbientLightIntensity, const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcNormal, const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const U srcAmbientLightIntensity[], const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcNormal, const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const U srcAmbientLightIntensity[], const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcNormal, const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const U &srcAmbientLightIntensity, const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcNormal, const U srcAmbient[], const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const U &srcAmbientLightIntensity, const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcNormal, const U srcAmbient[], const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const U srcAmbientLightIntensity[], const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcNormal, const U srcAmbient[], const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::blinnPhongShading (const U srcAmbientLightIntensity[], const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcNormal, const U srcAmbient[], const U srcDiffuse[], const U srcSpecular[], const U &srcShininess, const SmallMatrix< T, 3, 1 > &srcView, U dstReflectedIntensity[])
 Calculate Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageLambertianShading (const SmallMatrix< T, 3, 1 > &srcLightSource, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcAlbedo, int srcAlbedoStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a Lambertian surface.
 
template<size_t C, typename T , typename U >
void blo::renderImageLambertianShading (const SmallMatrix< T, 3, 1 > *pSrcLightSources, int count, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcAlbedo, int srcAlbedoStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a Lambertian surface.
 
template<size_t C, typename T , typename U >
void blo::renderImageLambertianShading (const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcAlbedo, int srcAlbedoStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a Lambertian surface.
 
template<size_t C, typename T , typename U >
void blo::renderImageLambertianShading (const SmallMatrix< T, 3, 1 > *pSrcLightSources, const U *const *ppSrcLightSourceIntensity, int count, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcAlbedo, int srcAlbedoStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a Lambertian surface.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const U &srcAmbientLightIntensity, const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const U &srcAmbientLightIntensity, const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const U srcAmbientLightIntensity[], const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const U srcAmbientLightIntensity[], const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const U &srcAmbientLightIntensity, const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcAmbient, int srcAmbientStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const U &srcAmbientLightIntensity, const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcAmbient, int srcAmbientStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const U srcAmbientLightIntensity[], const SmallMatrix< T, 3, 1 > &srcLightSource, const U &srcLightSourceIntensity, const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcAmbient, int srcAmbientStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<size_t C, typename T , typename U >
void blo::renderImageBlinnPhongShading (const U srcAmbientLightIntensity[], const SmallMatrix< T, 3, 1 > &srcLightSource, const U srcLightSourceIntensity[], const SmallMatrix< T, 3, 1 > &srcView, const SmallMatrix< T, 3, 1 > *pSrcNormals, int srcNormalsStep, const U *pSrcAmbient, int srcAmbientStep, const U *pSrcDiffuse, int srcDiffuseStep, const U *pSrcSpecular, int srcSpecularStep, const U *pSrcShininess, int srcShininessStep, U *pDst, int dstStep, int roiWidth, int roiHeight)
 Renders an image of the intensity of the light reflected from a surface using Blinn-Phong shading.
 
template<typename T >
void blo::barycentricCoords (const Point< T, 2 > &x1, const Point< T, 2 > &x2, const Point< T, 2 > &x3, const Point< T, 2 > &x, T &alpha, T &beta, T &gamma)
 Calculate the barycentric coordinates of a 2D point.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::barycentricCoords (const Point< double, 2 > &x1, const Point< double, 2 > &x2, const Point< double, 2 > &x3, const Point< double, 2 > &x, double &alpha, double &beta, double &gamma)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::barycentricCoords (const Point< float, 2 > &x1, const Point< float, 2 > &x2, const Point< float, 2 > &x3, const Point< float, 2 > &x, float &alpha, float &beta, float &gamma)
 
template<typename T >
void blo::barycentricCoords (const Point< T, 3 > &X1, const Point< T, 3 > &X2, const Point< T, 3 > &X3, const Point< T, 3 > &X, T &alpha, T &beta, T &gamma)
 Calculate the barycentric coordinates of a 3D point.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::barycentricCoords (const Point< double, 3 > &X1, const Point< double, 3 > &X2, const Point< double, 3 > &X3, const Point< double, 3 > &X, double &alpha, double &beta, double &gamma)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::barycentricCoords (const Point< float, 3 > &X1, const Point< float, 3 > &X2, const Point< float, 3 > &X3, const Point< float, 3 > &X, float &alpha, float &beta, float &gamma)
 
template<typename T >
bool blo::pointInsideTriangle (const T &alpha, const T &beta, const T &gamma)
 Determine if a point lies inside of a triangle using barycentric coordinates.
 
template<typename T >
bool blo::pointOnEdgeOrInsideTriangle (const T &alpha, const T &beta, const T &gamma)
 Determine if a point lies on an edge or inside of a triangle using barycentric coordinates.
 
template<typename T , typename U >
const U blo::interpolateBarycentric (const U &f1, const U &f2, const U &f3, const T &alpha, const T &beta, const T &gamma)
 Estimate, using linear interpolation, the value of a function at a point using barycentric coordinates.
 

Detailed Description

Computer graphics functions.