TEXTUREFILTER class provides several texture filter algorithms. More...
#include <gre/3dfilter.h>
Public Types | |
| enum | MODE { MODE_None = 0, MODE_NearestNeighbor = 1, MODE_Bilinear = 2, MODE_UpperMipMapNearestNeighbor = 3, MODE_LowerMipMapBilinear = 4, MODE_MipMapTrilinear = 5, MODE_MipMapAnisotropic = 6 } |
Public Member Functions | |
| TEXTUREFILTER () | |
| ~TEXTUREFILTER () | |
| bool | GetColor (const INT32 line, const INT32 column, COLOR &color) |
| bool | GetColor (const DPOINT3D &point, const INT32 line, const INT32 column, COLOR &color) |
| MODE | GetMode () const |
| bool | IsSet () |
| void | SetAnisotropicLimit (const UINT8 limit) |
| void | SetMipMapSharpness (const UINT8 sharpness) |
| void | SetMode (const MODE &mode) |
| void | SetScene (SCENE3D *scene) |
| void | SetScreenPlane (SCREENPLANE *plane) |
| void | SetTexture (TEXTURE *texture) |
TEXTUREFILTER class provides several texture filter algorithms.
| GRE::TEXTUREFILTER::TEXTUREFILTER | ( | ) | [inline] |
| GRE::TEXTUREFILTER::~TEXTUREFILTER | ( | ) | [inline] |
Get color for given screen pixel.
| bool GRE::TEXTUREFILTER::GetColor | ( | const DPOINT3D & | point, | |
| const INT32 | line, | |||
| const INT32 | column, | |||
| COLOR & | color | |||
| ) |
Get color for given screen pixel and its corresponding model point.
| MODE GRE::TEXTUREFILTER::GetMode | ( | ) | const [inline] |
Get texture filter mode.
| bool GRE::TEXTUREFILTER::IsSet | ( | ) | [inline] |
Is texture filter set.
| void GRE::TEXTUREFILTER::SetAnisotropicLimit | ( | const UINT8 | limit | ) | [inline] |
Set anisatropic filter limit in range [2, 64].
| void GRE::TEXTUREFILTER::SetMipMapSharpness | ( | const UINT8 | sharpness | ) | [inline] |
Set mipmap sharpnes in range [0, 100].
| void GRE::TEXTUREFILTER::SetMode | ( | const MODE & | mode | ) | [inline] |
Set texture filter mode.
| void GRE::TEXTUREFILTER::SetScene | ( | SCENE3D * | scene | ) | [inline] |
Set scene.
| void GRE::TEXTUREFILTER::SetScreenPlane | ( | SCREENPLANE * | plane | ) | [inline] |
Set screen plane.
| void GRE::TEXTUREFILTER::SetTexture | ( | TEXTURE * | texture | ) | [inline] |
Set texture to be filtered.
1.6.1