summaryrefslogtreecommitdiffstats
path: root/sdk/rwsdk/include/d3d8/rttilerd.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-02 18:36:50 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-02 18:36:50 +0200
commita786dd45a4ebc6b91936b5e46d0ef0a9befc05af (patch)
treeced50966eaaf373f8733547046baf2bdc558662d /sdk/rwsdk/include/d3d8/rttilerd.h
parentMerge branch 'master' of https://github.com/GTAmodding/re3 into erorcun (diff)
downloadre3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.gz
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.bz2
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.lz
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.xz
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.tar.zst
re3-a786dd45a4ebc6b91936b5e46d0ef0a9befc05af.zip
Diffstat (limited to 'sdk/rwsdk/include/d3d8/rttilerd.h')
-rw-r--r--sdk/rwsdk/include/d3d8/rttilerd.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/sdk/rwsdk/include/d3d8/rttilerd.h b/sdk/rwsdk/include/d3d8/rttilerd.h
new file mode 100644
index 00000000..f11b703b
--- /dev/null
+++ b/sdk/rwsdk/include/d3d8/rttilerd.h
@@ -0,0 +1,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 */