|
|
@ -3345,7 +3345,7 @@ namespace olc |
|
|
|
delete temp; |
|
|
|
delete temp; |
|
|
|
} |
|
|
|
} |
|
|
|
temp=font.RenderStringToDecal(sText,col); |
|
|
|
temp=font.RenderStringToDecal(sText,col); |
|
|
|
DrawDecal(pos,temp,scale/2,col); |
|
|
|
DrawDecal(pos,temp,scale/4,col); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void PixelGameEngine::DrawShadowStringDecal(Font&font, const olc::vf2d& pos, const std::u32string& sText, const Pixel col, const Pixel shadowCol, const olc::vf2d& scale,const float shadowSizeFactor){ |
|
|
|
void PixelGameEngine::DrawShadowStringDecal(Font&font, const olc::vf2d& pos, const std::u32string& sText, const Pixel col, const Pixel shadowCol, const olc::vf2d& scale,const float shadowSizeFactor){ |
|
|
@ -3358,11 +3358,11 @@ namespace olc |
|
|
|
for(float y=-shadowSizeFactor;y<=shadowSizeFactor+0.1;y+=shadowSizeFactor/2){ |
|
|
|
for(float y=-shadowSizeFactor;y<=shadowSizeFactor+0.1;y+=shadowSizeFactor/2){ |
|
|
|
for(float x=-shadowSizeFactor;x<=shadowSizeFactor+0.1;x+=shadowSizeFactor/2){ |
|
|
|
for(float x=-shadowSizeFactor;x<=shadowSizeFactor+0.1;x+=shadowSizeFactor/2){ |
|
|
|
if(x!=0||y!=0){ |
|
|
|
if(x!=0||y!=0){ |
|
|
|
DrawDecal(pos+vf2d{x,y},temp,scale/2,shadowCol); |
|
|
|
DrawDecal(pos+vf2d{x,y},temp,scale/4,shadowCol); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
DrawDecal(pos,temp,scale/2,col); |
|
|
|
DrawDecal(pos,temp,scale/4,col); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void PixelGameEngine::DrawShadowStringPropDecal(const olc::vf2d& pos, const std::string& sText, const Pixel col, const Pixel shadowCol, const olc::vf2d& scale,const float shadowSizeFactor){ |
|
|
|
void PixelGameEngine::DrawShadowStringPropDecal(const olc::vf2d& pos, const std::string& sText, const Pixel col, const Pixel shadowCol, const olc::vf2d& scale,const float shadowSizeFactor){ |
|
|
|