|
| LayerGL (size2_t dimensions=size2_t(256, 256), LayerType type=LayerType::Color, const DataFormatBase *format=DataVec4UInt8::get(), std::shared_ptr< Texture2D > tex=std::shared_ptr< Texture2D >(nullptr), const SwizzleMask &swizzleMask=swizzlemasks::rgba) |
|
| LayerGL (const LayerGL &rhs) |
|
LayerGL & | operator= (const LayerGL &rhs) |
|
virtual LayerGL * | clone () const override |
|
virtual void | setDimensions (size2_t dimensions) override |
|
virtual const size2_t & | getDimensions () const override |
|
virtual void | setSwizzleMask (const SwizzleMask &mask) override |
| update the swizzle mask of the channels for sampling the layer Needs to be overloaded by child classes. More...
|
|
virtual SwizzleMask | getSwizzleMask () const override |
|
void | bindTexture (GLenum texUnit) const |
|
void | bindTexture (const TextureUnit &texUnit) const |
|
void | unbindTexture () const |
|
virtual bool | copyRepresentationsTo (LayerRepresentation *) const override |
|
std::shared_ptr< Texture2D > | getTexture () const |
|
virtual std::type_index | getTypeIndex () const override final |
|
LayerType | getLayerType () const |
|
const DataFormatBase * | getDataFormat () const |
|
std::string | getDataFormatString () const |
|
DataFormatId | getDataFormatId () const |
|
void | setOwner (Layer *owner) |
|
Layer * | getOwner () |
|
const Layer * | getOwner () const |
|
bool | isValid () const |
|
void | setValid (bool valid) |
|
◆ copyRepresentationsTo()
◆ setDimensions()
void inviwo::LayerGL::setDimensions |
( |
size2_t |
dimensions | ) |
|
|
overridevirtual |
Resize the representation to dimension. This is destructive, the data will not be preserved. Use copyRepresentationsTo to update the data. Needs to be overloaded by child classes.
Implements inviwo::LayerRepresentation.
◆ setSwizzleMask()
void inviwo::LayerGL::setSwizzleMask |
( |
const SwizzleMask & |
mask | ) |
|
|
overridevirtual |
update the swizzle mask of the channels for sampling the layer Needs to be overloaded by child classes.
- Parameters
-
Implements inviwo::LayerRepresentation.
The documentation for this class was generated from the following files: