Add required header and use const& in constructor

This commit is contained in:
Matt Williams 2012-11-22 20:43:53 +00:00
parent 88c8c4014a
commit 839e5374b6
2 changed files with 5 additions and 3 deletions

View File

@ -24,7 +24,7 @@ freely, subject to the following restrictions:
#ifndef __PolyVox_VolumeResampler_H__
#define __PolyVox_VolumeResampler_H__
#include <cmath>
#include "PolyVoxCore/Region.h"
namespace PolyVox
{
@ -32,7 +32,7 @@ namespace PolyVox
class VolumeResampler
{
public:
VolumeResampler(SrcVolumeType* pVolSrc, Region regSrc, DstVolumeType* pVolDst, Region regDst);
VolumeResampler(SrcVolumeType* pVolSrc, const Region& regSrc, DstVolumeType* pVolDst, const Region& regDst);
void execute();

View File

@ -23,6 +23,8 @@ freely, subject to the following restrictions:
#include "PolyVoxCore/Interpolation.h"
#include <cmath>
namespace PolyVox
{
/**
@ -32,7 +34,7 @@ namespace PolyVox
* \param regDst
*/
template< typename SrcVolumeType, typename DstVolumeType>
VolumeResampler<SrcVolumeType, DstVolumeType>::VolumeResampler(SrcVolumeType* pVolSrc, Region regSrc, DstVolumeType* pVolDst, Region regDst)
VolumeResampler<SrcVolumeType, DstVolumeType>::VolumeResampler(SrcVolumeType* pVolSrc, const Region &regSrc, DstVolumeType* pVolDst, const Region& regDst)
:m_pVolSrc(pVolSrc)
,m_regSrc(regSrc)
,m_pVolDst(pVolDst)