00001 /* 00002 * Image modifier header 00003 * 00004 * This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns) 00005 * See "SoftPixelEngine.hpp" for license information. 00006 */ 00007 00008 #ifndef __SP_UTILITY_IMAGEMODIFIER_H__ 00009 #define __SP_UTILITY_IMAGEMODIFIER_H__ 00010 00011 00012 #include "Base/spStandard.hpp" 00013 00014 #ifdef SP_COMPILE_WITH_IMAGEMODIFIER 00015 00016 00017 #include "Base/spDimensionRect2D.hpp" 00018 00019 00020 namespace sp 00021 { 00022 00023 namespace video 00024 { 00025 class ImageBuffer; 00026 } 00027 00028 namespace tool 00029 { 00030 00031 00033 namespace ImageModifier 00034 { 00035 00036 static const dim::rect2di DEF_TEXMANIP_RECT = dim::rect2di(-1, -1); 00037 static const f32 DEF_NORMALMAP_AMPLITUDE = 5.0f; 00038 00039 SP_EXPORT void drawMosaic(video::ImageBuffer* ImgBuffer, s32 PixelSize, dim::rect2di Rect = DEF_TEXMANIP_RECT); 00040 SP_EXPORT void drawBlur(video::ImageBuffer* ImgBuffer, s32 PixelSize, dim::rect2di Rect = DEF_TEXMANIP_RECT); 00041 00047 SP_EXPORT void bakeNormalMap(video::ImageBuffer* ImgBuffer, f32 Amplitude = DEF_NORMALMAP_AMPLITUDE); 00048 00049 } // /namespace TextureModifier 00050 00051 00052 } // /namespace tool 00053 00054 } // /namespace sp 00055 00056 00057 #endif 00058 00059 #endif 00060 00061 00062 00063 // ================================================================================