Sha256: 1eb027e3f367eef11e03549d32d91dcdd6e3f09612cd3c9697d72c88857f7a11

Contents?: true

Size: 1.71 KB

Versions: 21

Compression:

Stored size: 1.71 KB

Contents

///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Image Copyright (c) 2008 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2011-04-06
// Updated : 2011-04-06
// Licence : This source is under MIT License
// File    : gli/core/texture_cube_array.inl
///////////////////////////////////////////////////////////////////////////////////////////////////

namespace gli
{
	inline textureCubeArray::textureCubeArray()
	{}

	inline textureCubeArray::textureCubeArray
	(
		layer_type const & Layers, 
		level_type const & Levels
	)
	{
		this->Arrays.resize(Layers);
		for(textureCubeArray::size_type i = 0; i < this->Arrays.size(); ++i)
			this->Arrays[i].resize(Levels);
	}

	inline textureCubeArray::~textureCubeArray()
	{}

	inline textureCube & textureCubeArray::operator[] 
	(
		layer_type const & Layer
	)
	{
		return this->Arrays[Layer];
	}

	inline textureCube const & textureCubeArray::operator[] 
	(
		layer_type const & Layer
	) const
	{
		return this->Arrays[Layer];
	}

	inline bool textureCubeArray::empty() const
	{
		return this->Arrays.empty();
	}

	inline textureCubeArray::format_type textureCubeArray::format() const
	{
		return this->Arrays.empty() ? FORMAT_NULL : this->Arrays[0].format();
	}

	inline textureCubeArray::level_type textureCubeArray::levels() const
	{
		if(this->empty())
			return 0;
		return this->Arrays[0].levels();
	}

	inline void textureCubeArray::resize
	(
		layer_type const & Layers, 
		level_type const & Levels
	)
	{
		for(textureCubeArray::size_type i = 0; i < this->Arrays.size(); ++i)
			this->Arrays[i].resize(Levels);
	}

}//namespace gli

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.4.4 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.4.3 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.4.2 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.4.1 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.4.0 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.3.2 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.3.1 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.3.0 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.2.6 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.2.5 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.2.4 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.2.3 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.2.2 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.2.1 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.2.0 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.1.4 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.1.3 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.1.2 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl
pixo-0.1.1 ext/pixo/ext/glm/test/external/gli/core/texture_cube_array.inl