#include
<oglplus/images/image_spec.hpp>
The ImageSpec
class is used to specify various parameters
of a texture image, like its width, height,
depth, pixel data type, format
and internal format and a pointer to and size of
a block of memory where the raw image data is stored. It is used mostly
as a parameter type for Texture,
Renderbuffer
and other similar functions.
ImageSpec
defines multiple constructors which allow
to specify values for various subsets of the parameters listed above
and initialize the unspecified parameters with appropriate default values.
namespace images { struct ImageSpec { typedef OneOf<DataType, PixelDataType> PixDataType; ImageSpec(void); ImageSpec( SizeType width, SizeType height, PixelDataInternalFormat internal_format ): ImageSpec( SizeType width, SizeType height, PixelDataFormat format, PixDataType type ); ImageSpec( SizeType width, PixelDataFormat format, PixelDataInternalFormat internal_format, PixDataType type ); ImageSpec( SizeType width, SizeType height, PixelDataFormat format, PixelDataInternalFormat internal_format, PixDataType type ); ImageSpec( SizeType width, SizeType height, SizeType depth, PixelDataFormat format, PixelDataInternalFormat internal_format, PixDataType type ); template <typename T> ImageSpec( SizeType width, PixelDataFormat format, PixelDataInternalFormat internal_format, const T* data ); template <typename T> ImageSpec( SizeType width, SizeType height, PixelDataFormat format, const T* data ); template <typename T> ImageSpec( SizeType w, SizeType h, PixelDataFormat format, PixelDataInternalFormat internal_format, const T* data ); }; } // namespace images
Nil image specification. |
|
Specifies a two dimensional image with a particular |
|
Specifies a two dimensional image with a particular |
|
Specifies a one dimensional image with a particular |
|
Specifies a two dimensional image with a particular |
|
Specifies a three dimensional image with a particular |
|
Specifies a one dimensional image with a particular |
|
Specifies a two dimensional image with a particular |
|
Specifies a two dimensional image with a particular |
#include
<oglplus/images/image.hpp>
The Image
class is used to store bitmap image data
and various parameters, like its width, height,
depth, pixel data type, format
and internal format. It is used mostly as a parameter
type for Texture,
Renderbuffer
and other similar functions.
namespace images { class Image { public: Image(const Image& that); Image(Image&& tmp) noexcept; Image& operator = (Image&& tmp) noexcept; template <typename T> Image( SizeType width, SizeType height, SizeType depth, SizeType channels, const T* data ); template <typename T> Image( SizeType width, SizeType height, SizeType depth, SizeType channels, const T* data, PixelDataFormat format, PixelDataInternalFormat internal ); GLsizei Dimension(std::size_t i) const noexcept; GLsizei Width(void) const noexcept; GLsizei Height(void) const noexcept; GLsizei Depth(void) const noexcept; GLsizei Channels(void) const noexcept; PixelDataType Type(void) const noexcept; PixelDataFormat Format(void) const noexcept; PixelDataInternalFormat InternalFormat(void) const noexcept; template <typename T> const T* Data(void) const noexcept; const void* RawData(void) const noexcept; std::size_t DataSize(void) const noexcept; //TODO }; } // namespace images