libtonc: tonc_schr4r.c File Reference

Tonclib

tonc_schr4r.c File Reference

#include "tonc_surface.h" #include "tonc_video.h"

Functions

INLINE u32 chr4_lmask (uint left)
 Returns the clear-mask for the left side of a fill rect.
INLINE u32 chr4_rmask (uint right)
 Returns the clear-mask for the right side of a fill rect.
INLINE void chr4r_plot (int x, int y, u32 clr, void *dstBase, u32 dstP)
INLINE void chr4r_colset (u32 *dstD, uint dstP4, uint left, uint right, uint height, u32 clr)
 Fill a rectangle inside a simple tile-column.
void schr4r_prep_map (const TSurface *srf, u16 *map, u16 se0)
 Prepare a screen-entry map for use with chr4.
u32 * schr4r_get_ptr (const TSurface *srf, int x, int y)
 Special pointer getter for chr4: start of in-tile line.
u32 schr4r_get_pixel (const TSurface *src, int x, int y)
 Get the pixel value of src at (x, y).
void schr4r_plot (const TSurface *dst, int x, int y, u32 clr)
 Plot a single pixel on a 4bpp tiled surface.
void schr4r_hline (const TSurface *dst, int x1, int y, int x2, u32 clr)
 Draw a horizontal line on a 4bpp tiled surface.
void schr4r_vline (const TSurface *dst, int x, int y1, int y2, u32 clr)
 Draw a vertical line on a 4bpp tiled surface.
void schr4r_line (const TSurface *dst, int x1, int y1, int x2, int y2, u32 clr)
 Draw a line on a 4bpp tiled surface.
void schr4r_rect (const TSurface *dst, int left, int top, int right, int bottom, u32 clr)
 Render a rectangle on a tiled canvas.
void schr4r_frame (const TSurface *dst, int left, int top, int right, int bottom, u32 clr)
 Draw a rectangle on a 4bpp tiled surface.

Detailed Description

Author:
J Vijn
Date:
20080409 - 20080409

Function Documentation

INLINE void chr4r_colset ( u32 *  dstD,
uint  dstP4,
uint  left,
uint  right,
uint  height,
u32  clr 
)

Fill a rectangle inside a simple tile-column.

Note:
left and right must already be between 0 and 8.


Generated on Mon Aug 25 17:03:56 2008 for libtonc by  doxygen 1.5.3