Bliting Primitives
[Advances methods for bliting directly to the screen without using entities. It uses IND_Render methods (recommended only for advanced IndieLib users)]


Bliting primitives (you can also use IND_Entity2d instead this methods)

void IND_Render::BlitPixel (int pX, int pY, byte pR, byte pG, byte pB, byte pA)
void IND_Render::BlitLine (int pX1, int pY1, int pX2, int pY2, byte pR, byte pG, byte pB, byte pA)
void IND_Render::BlitRectangle (int pX1, int pY1, int pX2, int pY2, byte pR, byte pG, byte pB, byte pA)
void IND_Render::BlitFillRectangle (int pX1, int pY1, int pX2, int pY2, byte pR, byte pG, byte pB, byte pA)
bool IND_Render::BlitPoly2d (IND_Point *pPixel, int pNumLines, byte pR, byte pG, byte pB, byte pA)
bool IND_Render::BlitRegularPoly (int pX, int pY, int pRadius, int pN, float pAngle, byte pR, byte pG, byte pB, byte pA)

Detailed Description

With these methods you can directly blit to the screen primitives using IND_Render class. Remember that you can also use IND_Entity2d with primitives joint to this object, in order to draw primitives.

Function Documentation

void IND_Render::BlitPixel ( int  pX,
int  pY,
byte  pR,
byte  pG,
byte  pB,
byte  pA 
) [inline, inherited]

Parameters:

Operation:

This function draws a pixel into the screen. This is a really slow method when the number of pixels is big.

This method is equivalent to use a combination of this methods:

void IND_Render::BlitLine ( int  pX1,
int  pY1,
int  pX2,
int  pY2,
byte  pR,
byte  pG,
byte  pB,
byte  pA 
) [inline, inherited]

Parameters:

Operation:

This function draws a line into the screen

This method is equivalent to use a combination of this methods:

void IND_Render::BlitRectangle ( int  pX1,
int  pY1,
int  pX2,
int  pY2,
byte  pR,
byte  pG,
byte  pB,
byte  pA 
) [inline, inherited]

Parameters:

Operation:

This function draws a rectangle into the screen

This method is equivalent to use a combination of this methods:

void IND_Render::BlitFillRectangle ( int  pX1,
int  pY1,
int  pX2,
int  pY2,
byte  pR,
byte  pG,
byte  pB,
byte  pA 
) [inline, inherited]

Parameters:

Operation:

This function draws a rectangle filled with a color into the screen. The A component is the transparency level (255 = complety opaque).

This method is equivalent to use a combination of this methods:

bool IND_Render::BlitPoly2d ( IND_Point pPolyPoints,
int  pNumLines,
byte  pR,
byte  pG,
byte  pB,
byte  pA 
) [inline, inherited]

Parameters:

Operation:

This function draws 2d poly

This method is equivalent to use a combination of this methods:

bool IND_Render::BlitRegularPoly ( int  pX,
int  pY,
int  pRadius,
int  pN,
float  pAngle,
byte  pR,
byte  pG,
byte  pB,
byte  pA 
) [inline, inherited]

Parameters:

Operation:

This function draws 2d regunr poly of n sides. If you need to draw circles you can use this method using 30 or more sides.

This method is equivalent to use a combination of this methods:


Generated on Tue Apr 22 16:46:52 2008 for IndieLib by  doxygen 1.5.4