22#pragma hdrstop
33
44#include " ETextureParams.h"
5+ #include " xrCore/xr_token.h"
56
6- xr_token tparam_token[] = {{" Advanced" , STextureParams::kMIPFilterAdvanced },
7+ const xr_token tparam_token[] = {{" Advanced" , STextureParams::kMIPFilterAdvanced },
78
89 {" Point" , STextureParams::kMIPFilterPoint }, {" Box" , STextureParams::kMIPFilterBox },
910 {" Triangle" , STextureParams::kMIPFilterTriangle }, {" Quadratic" , STextureParams::kMIPFilterQuadratic },
@@ -17,21 +18,21 @@ xr_token tparam_token[] = {{"Advanced", STextureParams::kMIPFilterAdvanced},
1718 {" Hanning" , STextureParams::kMIPFilterHanning }, {" Hamming" , STextureParams::kMIPFilterHamming },
1819 {" Blackman" , STextureParams::kMIPFilterBlackman }, {" Kaiser" , STextureParams::kMIPFilterKaiser }, {nullptr , 0 }};
1920
20- xr_token ttype_token[] = {{" 2D Texture" , STextureParams::ttImage}, {" Cube Map" , STextureParams::ttCubeMap},
21+ const xr_token ttype_token[] = {{" 2D Texture" , STextureParams::ttImage}, {" Cube Map" , STextureParams::ttCubeMap},
2122 {" Bump Map" , STextureParams::ttBumpMap}, {" Normal Map" , STextureParams::ttNormalMap},
2223 {" Terrain" , STextureParams::ttTerrain}, {nullptr , 0 }};
2324
24- xr_token tfmt_token[] = {{" DXT1" , STextureParams::tfDXT1}, {" DXT1 Alpha" , STextureParams::tfADXT1},
25+ const xr_token tfmt_token[] = {{" DXT1" , STextureParams::tfDXT1}, {" DXT1 Alpha" , STextureParams::tfADXT1},
2526 {" DXT3" , STextureParams::tfDXT3}, {" DXT5" , STextureParams::tfDXT5}, {" 16 bit (1:5:5:5)" , STextureParams::tf1555},
2627 {" 16 bit (5:6:5)" , STextureParams::tf565}, {" 32 bit (8:8:8:8)" , STextureParams::tfRGBA},
2728 {" 8 bit (alpha)" , STextureParams::tfA8}, {" 8 bit (luminance)" , STextureParams::tfL8},
2829 {" 16 bit (alpha:luminance)" , STextureParams::tfA8L8}, {nullptr , 0 }};
2930
30- xr_token tmtl_token[] = {{" OrenNayar <-> Blin" , STextureParams::tmOrenNayar_Blin},
31+ const xr_token tmtl_token[] = {{" OrenNayar <-> Blin" , STextureParams::tmOrenNayar_Blin},
3132 {" Blin <-> Phong" , STextureParams::tmBlin_Phong}, {" Phong <-> Metal" , STextureParams::tmPhong_Metal},
3233 {" Metal <-> OrenNayar" , STextureParams::tmMetal_OrenNayar}, {nullptr , 0 }};
3334
34- xr_token tbmode_token[] = {{" None" , STextureParams::tbmNone}, {" Use" , STextureParams::tbmUse},
35+ const xr_token tbmode_token[] = {{" None" , STextureParams::tbmNone}, {" Use" , STextureParams::tbmUse},
3536 {" Use parallax" , STextureParams::tbmUseParallax}, {nullptr , 0 }};
3637
3738void STextureParams::Load (IReader& F)
0 commit comments