blob: 4f4445a41cab28051f011b229e5de406f74f71f1 (
plain)
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
|
/**
* 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 */
|