1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/***************************************************************************
* *
* Module : rttilerd.h *
* *
* Purpose : Tile renderer *
* *
**************************************************************************/
#ifndef RTTILERD_H
#define RTTILERD_H
/**
* \defgroup rttilerender RtTileRender
* \ingroup rttool
*
* Tile renderer - e.g. grabbing screen shots - Toolkit for RenderWare.
*/
/****************************************************************************
Includes
*/
#include "rwcore.h"
#include "rpcriter.h"
/****************************************************************************
Defines
*/
/****************************************************************************
Global Types
*/
typedef RwCamera * (*RtTileRenderCallBack)(RwCamera *camera,
RwInt32 x, RwInt32 y,
void *pData);
typedef RwImage * (*RtTileArchiveCallBack)(RwImage *image,
RwInt32 x, RwInt32 y,
void *pData);
/****************************************************************************
Function prototypes
*/
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
/* Tile renderer */
extern RwCamera *
RtTileRender(RwCamera *camera,
RwInt32 imageWidth, RwInt32 imageHeight,
RwInt32 tileWidth, RwInt32 tileHeight,
RtTileRenderCallBack renderCallBack,
RtTileArchiveCallBack archiveCallBack,
void *pData);
extern RwImage *
RtTileDefaultArchive(RwImage *image,
RwInt32 x, RwInt32 y, void *pData);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* RTTILERD_H */
|