fs::ras Namespace Reference


Detailed Description

Bitmap & raster tools.


Classes

class  BmfFnt_t
 BMF font loader / renderer. More...
class  Cl565_t
 RGB-565 color representation (incomplete). More...
class  Cl888_t
 RGB-888 color representation (incomplete). More...
class  Cl8888_t
 RGBA-8888 color representation (incomplete). More...
class  Rle8Enc_t
 RLE8 encoder. More...
class  TgaLdr_t
 TGA image loader / data holder. More...

Namespaces

namespace  nsBitBlt
 BitBlt function related stuff.
namespace  nsDraw
 Draw function related stuff.
namespace  nsRle8Blt
 Rle8Blt function related stuff.

Functions

template<typename TCpPcy>
void BitBlt (typename const TCpPcy::SrcPxFmt_t *pSrc, int nSrcW, int, int nSrcPosX, int nSrcPosY, int nRegW, int nRegH, typename TCpPcy::DstPxFmt_t *pDst, int nDstW, int nDstH, int nDstPosX, int nDstPosY, int nDstClipX1=0, int nDstClipY1=0, int nDstClipX2=-1, int nDstClipY2=-1)
 Transfers a block of image data.
template<typename TDwPcy>
void DrawLine (int nX1, int nY1, int nX2, int nY2, const nsDraw::PxFmt8888_t &Clr, typename TDwPcy::PxFmt_t *pDst, int nDstW, int nDstH)
 Draws a line using Bresenham's algorithm.
template<typename TDwPcy>
void DrawCirc (int nX, int nY, int nR, const nsDraw::PxFmt8888_t &Clr, typename TDwPcy::PxFmt_t *pDst, int nDstW, int nDstH)
 Draws a circle using Bresenham's algorithm.
template<typename TCpPcy>
void Rle8Blt (const unsigned char *pRle, const nsRle8Blt::PxFmt8888_t *pPal, const nsRle8Blt::uint32 *pOff, int nSrcW, int, int nRegW, int nRegH, typename TCpPcy::DstPxFmt_t *pDst, int nDstW, int nDstH, int nDstPosX, int nDstPosY, int nDstClipX1=0, int nDstClipY1=0, int nDstClipX2=-1, int nDstClipY2=-1)
 Decodes & transfers RLE8 data stream (encoded with Rle8Enc_t).


Function Documentation

template<typename TCpPcy>
void fs::ras::BitBlt ( typename const TCpPcy::SrcPxFmt_t *  pSrc,
int  nSrcW,
int  ,
int  nSrcPosX,
int  nSrcPosY,
int  nRegW,
int  nRegH,
typename TCpPcy::DstPxFmt_t *  pDst,
int  nDstW,
int  nDstH,
int  nDstPosX,
int  nDstPosY,
int  nDstClipX1 = 0,
int  nDstClipY1 = 0,
int  nDstClipX2 = -1,
int  nDstClipY2 = -1 
)

Transfers a block of image data.

The function transfers a block of image data from one source buffer to another using given copy policy.

Note:
The clipping rectangle is <nDstX1, nDstX2) & <nDstY1, nDstY2)

Definition at line 127 of file fsBitBlt.h.

References FS_ASSERT.

template<typename TDwPcy>
void fs::ras::DrawLine ( int  nX1,
int  nY1,
int  nX2,
int  nY2,
const nsDraw::PxFmt8888_t &  Clr,
typename TDwPcy::PxFmt_t *  pDst,
int  nDstW,
int  nDstH 
)

Draws a line using Bresenham's algorithm.

Todo:
Clipping, Check Double Speed Bresenham's?

Definition at line 74 of file fsDraw.h.

References fs::mth::Abs(), and FS_ASSERT.

Here is the call graph for this function:

template<typename TDwPcy>
void fs::ras::DrawCirc ( int  nX,
int  nY,
int  nR,
const nsDraw::PxFmt8888_t &  Clr,
typename TDwPcy::PxFmt_t *  pDst,
int  nDstW,
int  nDstH 
)

Draws a circle using Bresenham's algorithm.

Todo:
Clipping

Definition at line 134 of file fsDraw.h.

References FS_ASSERT.

template<typename TCpPcy>
void fs::ras::Rle8Blt ( const unsigned char *  pRle,
const nsRle8Blt::PxFmt8888_t *  pPal,
const nsRle8Blt::uint32 pOff,
int  nSrcW,
int  ,
int  nRegW,
int  nRegH,
typename TCpPcy::DstPxFmt_t *  pDst,
int  nDstW,
int  nDstH,
int  nDstPosX,
int  nDstPosY,
int  nDstClipX1 = 0,
int  nDstClipY1 = 0,
int  nDstClipX2 = -1,
int  nDstClipY2 = -1 
)

Decodes & transfers RLE8 data stream (encoded with Rle8Enc_t).

Todo:
The code is still under development.

Definition at line 83 of file fsRle8Blt.h.

References FS_ASSERT.


FipS' Code (Thu Feb 15 22:43:52 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]