Remove internal image path function ~L() which applied lightmap.

Not used anymore by the ToD engine. I hesitated to let it live there
but just realised that it requires lightmap having same width as the
image, which makes it too limited.
This commit is contained in:
Ali El Gariani 2011-12-16 03:38:59 +00:00
parent c3e5ea2068
commit 1e12b3b999
2 changed files with 0 additions and 42 deletions

View file

@ -255,17 +255,6 @@ int mask_modification::get_y() const
return y_;
}
surface light_modification::operator()(const surface& src) const {
if(src == NULL) { return NULL; }
return light_surface(src, surf_);;
}
const surface& light_modification::get_surface() const
{
return surf_;
}
surface scale_modification::operator()(const surface& src) const
{
const int old_w = src->w;
@ -664,19 +653,6 @@ REGISTER_MOD_PARSER(MASK, args)
return new mask_modification(surf, x, y);
}
// Light
REGISTER_MOD_PARSER(L, args)
{
if(args.empty()){
ERR_DP << "no arguments passed to the ~L() function\n";
return NULL;
}
surface surf = get_image(args);
return new light_modification(surf);
}
// Scale
REGISTER_MOD_PARSER(SCALE, args)
{

View file

@ -229,24 +229,6 @@ private:
int y_;
};
/**
* LIGHT (L) modification.
*/
class light_modification : public modification
{
public:
light_modification(const surface& surf)
: surf_(surf)
{}
virtual surface operator()(const surface& src) const;
const surface& get_surface() const;
private:
surface surf_;
};
/**
* Scale (SCALE) modification.
*/