Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::gfx::TextureBase::SubImage Struct Reference

Wrapper around a sub-image, which is defined as an image, the xy offset of where it should be placed in the texture, and a mipmap level. More...

#include "texture.h"

Collaboration diagram for ion::gfx::TextureBase::SubImage:

Public Member Functions

 SubImage ()
 
 SubImage (size_t level_in, const math::Point2ui &offset_in, const ImagePtr &image_in)
 
 SubImage (size_t level_in, const math::Point3ui &offset_in, const ImagePtr &image_in)
 

Public Attributes

size_t level
 
math::Point3ui offset
 
ImagePtr image
 

Detailed Description

Wrapper around a sub-image, which is defined as an image, the xy offset of where it should be placed in the texture, and a mipmap level.

Subclasses should use this to declare texture image data.

Definition at line 46 of file texture.h.

Constructor & Destructor Documentation

ion::gfx::TextureBase::SubImage::SubImage ( )
inline

Definition at line 47 of file texture.h.

ion::gfx::TextureBase::SubImage::SubImage ( size_t  level_in,
const math::Point2ui &  offset_in,
const ImagePtr image_in 
)
inline

Definition at line 49 of file texture.h.

ion::gfx::TextureBase::SubImage::SubImage ( size_t  level_in,
const math::Point3ui &  offset_in,
const ImagePtr image_in 
)
inline

Definition at line 54 of file texture.h.

Member Data Documentation

ImagePtr ion::gfx::TextureBase::SubImage::image

Definition at line 60 of file texture.h.

size_t ion::gfx::TextureBase::SubImage::level

Definition at line 58 of file texture.h.

math::Point3ui ion::gfx::TextureBase::SubImage::offset

Definition at line 59 of file texture.h.


The documentation for this struct was generated from the following file: