Source

gltut / glimg / source / ImageSetImpl.cpp

Full commit

#include "ImageSetImpl.h"
#include "Util.h"

namespace glimg
{
	detail::ImageSetImpl::ImageSetImpl( MemoryObject *pObject, Dimensions dimensions,
		int arrayCount, int mipmapCount, int faceCount,
		ImageFormat format, std::vector<MipmapLevel> &swapThisIn )
		: m_dimensions(dimensions)
		, m_format(format)
		, m_pMemory(pObject)
		, m_arrayCount(arrayCount)
		, m_mipmapCount(mipmapCount)
		, m_faceCount(faceCount)
	{
		std::swap(m_imageData, swapThisIn);
	}

	Dimensions detail::ImageSetImpl::GetDimensions( int mipmapLevel ) const
	{
		return ModifySizeForMipmap(m_dimensions, mipmapLevel);
	}
}