UVFloatFromPixel add a template params
This commit is contained in:
parent
8af1056542
commit
c2d6f456f7
@ -149,8 +149,8 @@ namespace hgl
|
|||||||
typedef RectScope2<short> RectScope2s;
|
typedef RectScope2<short> RectScope2s;
|
||||||
typedef RectScope2<ushort> RectScope2us;
|
typedef RectScope2<ushort> RectScope2us;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T,typename S>
|
||||||
inline void UVFloatFromPixel(RectScope2<T> &target,const RectScope2<T> &source,const double width,const double height)
|
inline void UVFloatFromPixel(RectScope2<T> &target,const RectScope2<S> &source,const double width,const double height)
|
||||||
{
|
{
|
||||||
target.Left =double(source.Left) /width;
|
target.Left =double(source.Left) /width;
|
||||||
target.Top =double(source.Top) /height;
|
target.Top =double(source.Top) /height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user