Classes | Namespaces | Typedefs | Functions

D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/Base/spMathRasterizer.hpp File Reference

#include "Base/spStandard.hpp"
#include "Base/spMath.hpp"
#include <boost/function.hpp>

Go to the source code of this file.

Classes

class  sp::math::RasterizerVertex

Namespaces

namespace  sp
 

!!


namespace  sp::math
 

This namespace contains all mathematical basic functions such as sine, cosine, distance calculations etc.


namespace  sp::math::Rasterizer
 

Namespace for rasterization templates.


Typedefs

typedef boost::function< void(s32
x, s32 y, void *UserData) 
sp::math::RenderPixelCallback )
 Callback function interface for rasterization without vertices.

Functions

template<class VtxT >
void sp::math::Rasterizer::computeRasterScanline (const VtxT *(&v)[3], s32 y, s32 yStart, s32 yMiddle, VtxT &a, VtxT &b)
 Only used internally for the rasterizeTriangle template function.
template<class VtxT >
void sp::math::Rasterizer::rasterizeTriangle (const boost::function< void(s32 x, s32 y, const VtxT &Vertex, void *UserData)> &RenderPixelCallback, const VtxT &VertexA, const VtxT &VertexB, const VtxT &VertexC, void *UserData=0)
template<class VtxT >
void sp::math::Rasterizer::rasterizeLine (const boost::function< void(s32 x, s32 y, const VtxT &Vertex, void *UserData)> &RenderPixelCallback, const VtxT &VertexA, const VtxT &VertexB, void *UserData=0)
SP_EXPORT void sp::math::Rasterizer::rasterizeTriangle (const RenderPixelCallback &RenderCallback, dim::point2di PointA, dim::point2di PointB, dim::point2di PointC, void *UserData)
SP_EXPORT void sp::math::Rasterizer::rasterizeCircle (const RenderPixelCallback &RenderCallback, const dim::point2di &Position, s32 Radius, void *UserData)
SP_EXPORT void sp::math::Rasterizer::rasterizeEllipse (const RenderPixelCallback &RenderCallback, const dim::point2di &Position, const dim::size2di &Radius, void *UserData)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines