0.6.1
|
Namespaces | |
detail | |
Classes | |
class | dx |
class | gl |
class | image |
class | storage |
class | texture |
class | texture1D |
class | texture1DArray |
class | texture2D |
class | texture2DArray |
class | texture3D |
class | textureCube |
class | textureCubeArray |
Typedefs | |
typedef glm::tvec1< size_t > | dim1_t |
typedef glm::tvec2< size_t > | dim2_t |
typedef glm::tvec3< size_t > | dim3_t |
typedef glm::tvec4< size_t > | dim4_t |
typedef glm::ivec4 | ivec4 |
typedef glm::vec1 | vec1 |
typedef glm::vec2 | vec2 |
typedef glm::vec3 | vec3 |
typedef glm::vec4 | vec4 |
Functions | |
std::uint32_t | block_dimensions_x (format const &Format) |
std::uint32_t | block_dimensions_y (format const &Format) |
std::uint32_t | block_dimensions_z (format const &Format) |
std::uint32_t | block_size (format const &Format) |
template<typename genType > | |
void | clear (image &Image, genType const &Texel) |
template<typename genType > | |
void | clear (texture2D &Texture, genType const &Texel) |
std::uint32_t | component_count (format const &Format) |
image | copy (image const &Image) |
template<typename texture > | |
texture | copy (texture const &Texture) |
texture2D | copy (texture2D const &Texture, texture2D::format_type Format) |
texture1D | copy (texture1D const &Texture, texture1D::size_type const &BaseLevel, texture1D::size_type const &MaxLevel) |
texture2D | copy (texture2D const &Texture, texture2D::size_type const &BaseLevel, texture2D::size_type const &MaxLevel) |
texture3D | copy (texture3D const &Texture, texture3D::size_type const &BaseLevel, texture3D::size_type const &MaxLevel) |
template<typename texture > | |
texture | copy (texture const &Texture, typename texture::size_type const &BaseLayer, typename texture::size_type const &MaxLayer, typename texture::size_type const &BaseLevel, typename texture::size_type const &MaxLevel) |
textureCube | copy (textureCube const &Texture, textureCube::size_type const &BaseFace, textureCube::size_type const &MaxFace, textureCube::size_type const &BaseLevel, textureCube::size_type const &MaxLevel) |
textureCubeArray | copy (textureCubeArray const &Texture, textureCubeArray::size_type const &BaseLayer, textureCubeArray::size_type const &MaxLayer, textureCubeArray::size_type const &BaseFace, textureCubeArray::size_type const &MaxFace, textureCubeArray::size_type const &BaseLevel, textureCubeArray::size_type const &MaxLevel) |
template<typename texture > | |
texture | flip (texture const &Texture) |
template<typename texture > | |
texture | generate_mipmaps (texture &Texture) |
bool | is_compressed (format const &Format) |
bool | is_valid (format const &Format) |
template<template< typename, glm::precision > class dimType> | |
size_t | levels (dimType< size_t, glm::defaultp > const &Dimensions) |
size_t | levels (size_t Dimension) |
storage | load_dds (char const *Filename) |
storage | load_dds (std::string const &Filename) |
storage | load_dds (char const *Data, std::size_t Size) |
bool | operator!= (image const &ImageA, image const &ImageB) |
bool | operator!= (gli::texture1D const &A, gli::texture1D const &B) |
bool | operator!= (gli::texture1DArray const &A, gli::texture1DArray const &B) |
bool | operator!= (gli::texture2D const &A, gli::texture2D const &B) |
bool | operator!= (gli::texture2DArray const &A, gli::texture2DArray const &B) |
bool | operator!= (gli::texture3D const &A, gli::texture3D const &B) |
bool | operator!= (gli::textureCube const &A, gli::textureCube const &B) |
bool | operator!= (gli::textureCubeArray const &A, gli::textureCubeArray const &B) |
texture2D | operator+ (texture2D const &TextureA, texture2D const &TextureB) |
texture2D | operator- (texture2D const &TextureA, texture2D const &TextureB) |
bool | operator== (image const &ImageA, image const &ImageB) |
bool | operator== (gli::texture1D const &A, gli::texture1D const &B) |
bool | operator== (gli::texture1DArray const &A, gli::texture1DArray const &B) |
bool | operator== (gli::texture2D const &A, gli::texture2D const &B) |
bool | operator== (gli::texture2DArray const &A, gli::texture2DArray const &B) |
bool | operator== (gli::texture3D const &A, gli::texture3D const &B) |
bool | operator== (gli::textureCube const &A, gli::textureCube const &B) |
bool | operator== (gli::textureCubeArray const &A, gli::textureCubeArray const &B) |
void | save_dds (storage const &Storage, char const *Filename) |
void | save_dds (storage const &Storage, std::string const &Filename) |
void | save_dds (storage const &Storage, char const *Data, std::size_t Size) |
template<typename genType > | |
genType | texelFetch (texture2D const &Texture, texture2D::dim_type const &Texcoord, texture2D::size_type const &Level) |
template<typename genType > | |
void | texelWrite (texture2D &Texture, texture2D::dim_type const &Texcoord, texture2D::size_type const &Level, genType const &Color) |
template<typename genType > | |
genType | textureLod (texture2D const &Texture, texture2D::texcoord_type const &Texcoord, texture2D::size_type const &Level) |
image | view (image const &Image) |
template<typename texture > | |
texture | view (texture const &Texture) |
texture1D | view (texture1D const &Texture, texture1D::size_type const &BaseLevel, texture1D::size_type const &MaxLevel) |
texture2D | view (texture2D const &Texture, texture2D::size_type const &BaseLevel, texture2D::size_type const &MaxLevel) |
texture3D | view (texture3D const &Texture, texture3D::size_type const &BaseLevel, texture3D::size_type const &MaxLevel) |
template<typename texture > | |
texture | view (texture const &Texture, typename texture::size_type const &BaseLayer, typename texture::size_type const &MaxLayer, typename texture::size_type const &BaseLevel, typename texture::size_type const &MaxLevel) |
textureCube | view (textureCube const &Texture, textureCube::size_type const &BaseFace, textureCube::size_type const &MaxFace, textureCube::size_type const &BaseLevel, textureCube::size_type const &MaxLevel) |
textureCubeArray | view (textureCubeArray const &Texture, textureCubeArray::size_type const &BaseLayer, textureCubeArray::size_type const &MaxLayer, textureCubeArray::size_type const &BaseFace, textureCubeArray::size_type const &MaxFace, textureCubeArray::size_type const &BaseLevel, textureCubeArray::size_type const &MaxLevel) |
anonymous enum |
Enumerator | |
---|---|
FORMAT_INVALID | |
FORMAT_COUNT | |
FORMAT_COMPRESSED_COUNT |
Definition at line 211 of file format.hpp.
enum format |
Definition at line 33 of file format.hpp.
std::uint32_t gli::block_dimensions_x | ( | format const & | Format | ) |
std::uint32_t gli::block_dimensions_y | ( | format const & | Format | ) |
std::uint32_t gli::block_dimensions_z | ( | format const & | Format | ) |
std::uint32_t gli::block_size | ( | format const & | Format | ) |
Referenced by texture::clear(), texture::data(), and texture::size().
void gli::clear | ( | image & | Image, |
genType const & | Texel | ||
) |
void gli::clear | ( | texture2D & | Texture, |
genType const & | Texel | ||
) |
std::uint32_t gli::component_count | ( | format const & | Format | ) |
texture2D gli::copy | ( | texture2D const & | Texture, |
texture2D::format_type | Format | ||
) |
texture1D gli::copy | ( | texture1D const & | Texture, |
texture1D::size_type const & | BaseLevel, | ||
texture1D::size_type const & | MaxLevel | ||
) |
texture2D gli::copy | ( | texture2D const & | Texture, |
texture2D::size_type const & | BaseLevel, | ||
texture2D::size_type const & | MaxLevel | ||
) |
texture3D gli::copy | ( | texture3D const & | Texture, |
texture3D::size_type const & | BaseLevel, | ||
texture3D::size_type const & | MaxLevel | ||
) |
texture gli::copy | ( | texture const & | Texture, |
typename texture::size_type const & | BaseLayer, | ||
typename texture::size_type const & | MaxLayer, | ||
typename texture::size_type const & | BaseLevel, | ||
typename texture::size_type const & | MaxLevel | ||
) |
textureCube gli::copy | ( | textureCube const & | Texture, |
textureCube::size_type const & | BaseFace, | ||
textureCube::size_type const & | MaxFace, | ||
textureCube::size_type const & | BaseLevel, | ||
textureCube::size_type const & | MaxLevel | ||
) |
textureCubeArray gli::copy | ( | textureCubeArray const & | Texture, |
textureCubeArray::size_type const & | BaseLayer, | ||
textureCubeArray::size_type const & | MaxLayer, | ||
textureCubeArray::size_type const & | BaseFace, | ||
textureCubeArray::size_type const & | MaxFace, | ||
textureCubeArray::size_type const & | BaseLevel, | ||
textureCubeArray::size_type const & | MaxLevel | ||
) |
bool gli::is_compressed | ( | format const & | Format | ) |
Definition at line 218 of file format.hpp.
References FORMAT_COMPRESSED_FIRST, and FORMAT_COMPRESSED_LAST.
bool gli::is_valid | ( | format const & | Format | ) |
Definition at line 223 of file format.hpp.
References FORMAT_FIRST, and FORMAT_LAST.
size_t gli::levels | ( | dimType< size_t, glm::defaultp > const & | Dimensions | ) |
Compute the number of mipmaps levels necessary to create a mipmap complete texture.
Dimensions | Dimensions of the texture base level mipmap |
dimType | Vector type used to express the dimentions of a texture of any kind. #include <gli/gli.hpp>
#include <gli/levels.hpp>
...
gli::size2_t Dimensions(32, 10);
gli::texture2D Texture(gli::levels(Dimensions));
|
size_t gli::levels | ( | size_t | Dimension | ) |
Compute the number of mipmaps levels necessary to create a mipmap complete texture.
Dimensions | Dimensions of the texture base level mipmap |
dimType | Vector type used to express the dimentions of a texture of any kind. |
storage gli::load_dds | ( | char const * | Filename | ) |
storage gli::load_dds | ( | std::string const & | Filename | ) |
storage gli::load_dds | ( | char const * | Data, |
std::size_t | Size | ||
) |
bool gli::operator!= | ( | gli::texture1D const & | A, |
gli::texture1D const & | B | ||
) |
bool gli::operator!= | ( | gli::texture1DArray const & | A, |
gli::texture1DArray const & | B | ||
) |
bool gli::operator!= | ( | gli::texture2D const & | A, |
gli::texture2D const & | B | ||
) |
bool gli::operator!= | ( | gli::texture2DArray const & | A, |
gli::texture2DArray const & | B | ||
) |
bool gli::operator!= | ( | gli::texture3D const & | A, |
gli::texture3D const & | B | ||
) |
bool gli::operator!= | ( | gli::textureCube const & | A, |
gli::textureCube const & | B | ||
) |
bool gli::operator!= | ( | gli::textureCubeArray const & | A, |
gli::textureCubeArray const & | B | ||
) |
bool gli::operator== | ( | gli::texture1D const & | A, |
gli::texture1D const & | B | ||
) |
bool gli::operator== | ( | gli::texture1DArray const & | A, |
gli::texture1DArray const & | B | ||
) |
bool gli::operator== | ( | gli::texture2D const & | A, |
gli::texture2D const & | B | ||
) |
bool gli::operator== | ( | gli::texture2DArray const & | A, |
gli::texture2DArray const & | B | ||
) |
bool gli::operator== | ( | gli::texture3D const & | A, |
gli::texture3D const & | B | ||
) |
bool gli::operator== | ( | gli::textureCube const & | A, |
gli::textureCube const & | B | ||
) |
bool gli::operator== | ( | gli::textureCubeArray const & | A, |
gli::textureCubeArray const & | B | ||
) |
void gli::save_dds | ( | storage const & | Storage, |
char const * | Filename | ||
) |
Save a texture storage to file.
void gli::save_dds | ( | storage const & | Storage, |
std::string const & | Filename | ||
) |
Save a texture storage to file.
void gli::save_dds | ( | storage const & | Storage, |
char const * | Data, | ||
std::size_t | Size | ||
) |
genType gli::texelFetch | ( | texture2D const & | Texture, |
texture2D::dim_type const & | Texcoord, | ||
texture2D::size_type const & | Level | ||
) |
void gli::texelWrite | ( | texture2D & | Texture, |
texture2D::dim_type const & | Texcoord, | ||
texture2D::size_type const & | Level, | ||
genType const & | Color | ||
) |
genType gli::textureLod | ( | texture2D const & | Texture, |
texture2D::texcoord_type const & | Texcoord, | ||
texture2D::size_type const & | Level | ||
) |
texture1D gli::view | ( | texture1D const & | Texture, |
texture1D::size_type const & | BaseLevel, | ||
texture1D::size_type const & | MaxLevel | ||
) |
texture2D gli::view | ( | texture2D const & | Texture, |
texture2D::size_type const & | BaseLevel, | ||
texture2D::size_type const & | MaxLevel | ||
) |
texture3D gli::view | ( | texture3D const & | Texture, |
texture3D::size_type const & | BaseLevel, | ||
texture3D::size_type const & | MaxLevel | ||
) |
texture gli::view | ( | texture const & | Texture, |
typename texture::size_type const & | BaseLayer, | ||
typename texture::size_type const & | MaxLayer, | ||
typename texture::size_type const & | BaseLevel, | ||
typename texture::size_type const & | MaxLevel | ||
) |
textureCube gli::view | ( | textureCube const & | Texture, |
textureCube::size_type const & | BaseFace, | ||
textureCube::size_type const & | MaxFace, | ||
textureCube::size_type const & | BaseLevel, | ||
textureCube::size_type const & | MaxLevel | ||
) |
textureCubeArray gli::view | ( | textureCubeArray const & | Texture, |
textureCubeArray::size_type const & | BaseLayer, | ||
textureCubeArray::size_type const & | MaxLayer, | ||
textureCubeArray::size_type const & | BaseFace, | ||
textureCubeArray::size_type const & | MaxFace, | ||
textureCubeArray::size_type const & | BaseLevel, | ||
textureCubeArray::size_type const & | MaxLevel | ||
) |