pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.6 KiB
49 lines
1.6 KiB
13 years ago
|
/**
|
||
|
* \addtogroup bitmap
|
||
|
* @{
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* @file bitmapscroller.h
|
||
|
* @brief Public interface for the Borg's bitmap scroller.
|
||
|
* @author Christian Kroll
|
||
|
*/
|
||
|
|
||
14 years ago
|
#ifndef BITMAP_SCROLLER_H_
|
||
|
#define BITMAP_SCROLLER_H_
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
|
||
|
/**
|
||
|
* This type definition describes a function which is supposed to provide an
|
||
|
* eight-by-one pixel chunk of a bitmap for a given bit plane. The x-coordinates
|
||
|
* are based on chunks, not on pixels (i.e. nChunkX=2 has to be interpreted as
|
||
|
* a pixel based x-coordinate of 16). This way it is easy to provide the bitmap
|
||
|
* via a simple lookup in an uint8_t typed array. (0,0) is considered as the top
|
||
|
* left coordinate.
|
||
|
* @param nBitPlane Number of the desired bit plane.
|
||
|
* @param nChunkX x-coordinate of the chunk.
|
||
|
* @param nChunkY y-coordinate of the chunk.
|
||
|
* @param nFrame The current frame number (in case you want to animate sth.).
|
||
|
* @return an eight-by-one chunk of the bitmap packed into an uint8_t typed
|
||
|
*/
|
||
14 years ago
|
typedef uint8_t (*bitmap_getChunk_t)(unsigned char const nBitPlane,
|
||
|
unsigned char const nChunkX,
|
||
|
unsigned char const nChunkY,
|
||
14 years ago
|
unsigned int const nFrame);
|
||
|
|
||
|
|
||
14 years ago
|
void bitmap_scroll(unsigned char const nWidth,
|
||
|
unsigned char const nHeight,
|
||
14 years ago
|
unsigned char const nBitPlanes,
|
||
13 years ago
|
unsigned int const nTickCount,
|
||
12 years ago
|
int const nTick,
|
||
13 years ago
|
unsigned char const nFrameTickDivider,
|
||
|
unsigned char const nMovementTickDivider,
|
||
14 years ago
|
bitmap_getChunk_t fpGetChunk);
|
||
|
|
||
|
#endif /* BITMAP_SCROLLER_H_ */
|
||
13 years ago
|
|
||
|
/*@}*/
|