Sha256: 8fb5cfe97cd0942e1a87124700e00b8c8e97df89f24ae36f7273dc6dd0495090

Contents?: true

Size: 1.56 KB

Versions: 21

Compression:

Stored size: 1.56 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.hpp
///////////////////////////////////////////////////////////////////////////////////////////////////

#ifndef GLI_CORE_TEXTURE_CUBE_INCLUDED
#define GLI_CORE_TEXTURE_CUBE_INCLUDED

#include "texture2d.hpp"

namespace gli
{
	enum face
	{
		POSITIVE_X,
		NEGATIVE_X,
		POSITIVE_Y,
		NEGATIVE_Y,
		POSITIVE_Z,
		NEGATIVE_Z,
		FACE_MAX
	};

	class textureCube
	{
	public:
		typedef texture2D::dimensions_type dimensions_type;
		typedef texture2D::texcoord_type texcoord_type;
		typedef texture2D::size_type size_type;
		typedef texture2D::value_type value_type;
		typedef texture2D::format_type format_type;
		typedef texture2D::data_type data_type;
		typedef texture2D::level_type level_type;
		typedef face face_type;

	public:
		textureCube();

		explicit textureCube(level_type const & Levels);

		~textureCube();

		texture2D & operator[] (
			face_type const & Face);
		texture2D const & operator[] (
			face_type const & Face) const;

		bool empty() const;
		format_type format() const;
		level_type levels() const;
		void resize(level_type const & Levels);

	private:
		std::vector<texture2D> Faces;
	};

}//namespace gli

#include "texture_cube.inl"

#endif//GLI_CORE_TEXTURE_CUBE_INCLUDED

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.hpp
pixo-0.4.4 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.4.3 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.4.2 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.4.1 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.4.0 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.3.2 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.3.1 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.3.0 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.2.6 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.2.5 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.2.4 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.2.3 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.2.2 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.2.1 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.2.0 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.1.4 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.1.3 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.1.2 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp
pixo-0.1.1 ext/pixo/ext/glm/test/external/gli/core/texture_cube.hpp