summaryrefslogtreecommitdiffstats
path: root/rwsdk/include/d3d8/rpanisot.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-05-18 12:39:39 +0200
committeraap <aap@papnet.eu>2019-05-18 12:39:39 +0200
commit9e496100b7baff8834658f577d3138d9f8fc3765 (patch)
treea725be9b0dba9a4ce76c19a6629ef62c36e46814 /rwsdk/include/d3d8/rpanisot.h
parentfixed pathfind (diff)
downloadre3-9e496100b7baff8834658f577d3138d9f8fc3765.tar
re3-9e496100b7baff8834658f577d3138d9f8fc3765.tar.gz
re3-9e496100b7baff8834658f577d3138d9f8fc3765.tar.bz2
re3-9e496100b7baff8834658f577d3138d9f8fc3765.tar.lz
re3-9e496100b7baff8834658f577d3138d9f8fc3765.tar.xz
re3-9e496100b7baff8834658f577d3138d9f8fc3765.tar.zst
re3-9e496100b7baff8834658f577d3138d9f8fc3765.zip
Diffstat (limited to '')
-rw-r--r--rwsdk/include/d3d8/rpanisot.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/rwsdk/include/d3d8/rpanisot.h b/rwsdk/include/d3d8/rpanisot.h
new file mode 100644
index 00000000..4f4445a4
--- /dev/null
+++ b/rwsdk/include/d3d8/rpanisot.h
@@ -0,0 +1,54 @@
+/**
+ * Anisotropic Texture Sampling Plugin for RenderWare.
+ */
+
+#ifndef RPANISOTPLUGIN_H
+#define RPANISOTPLUGIN_H
+
+/**
+ * \defgroup rpanisot RpAnisot
+ * \ingroup rpplugin
+ *
+ * Anisotropic Texture Sampling Plugin for RenderWare Graphics.
+ */
+
+/**
+ * \ingroup rpanisot
+ * \page rpanisotoverview RpAnisot Plugin Overview
+ *
+ * \par Requirements
+ * \li \b Headers: rwcore.h, rpworld.h, rpanisot.h
+ * \li \b Libraries: rwcore, rpworld, rpanisot
+ * \li \b Plugin \b attachments: \ref RpWorldPluginAttach, \ref RpAnisotPluginAttach
+ *
+ * \subsection anisotoverview Overview
+ * The RpAnisot plugin is used to extend an RwTexture with a maximum
+ * anisotropy value that will be used when a particular texture is drawn.
+ * When textured polygons are viewed nearly edge on, for example when looking
+ * dowm a road or a football pitch, distant pixels are not sampled very well
+ * by trilinear mipmapping and the texture looks smeary.
+ * Anisotropic sampling takes additional samples, resulting in sharper looking
+ * textures. Higher numbers of samples will produce better quality results but
+ * run slower, so should be used in moderation.
+ *
+ */
+
+#include <rwcore.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+extern RwInt8 RpAnisotGetMaxSupportedMaxAnisotropy(void);
+
+extern RwTexture *RpAnisotTextureSetMaxAnisotropy(RwTexture *tex, RwInt8 val);
+extern RwInt8 RpAnisotTextureGetMaxAnisotropy(RwTexture *tex);
+
+extern RwBool RpAnisotPluginAttach(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* RPANISOTPLUGIN_H */