| 
    Libprimis
    
   Imprimis' 3D destroyable world engine 
   | 
 
A virtual texture slot. More...
#include <slot.h>
  
Public Member Functions | |
| VSlot (Slot *slot=nullptr, int index=-1) | |
| void | addvariant (Slot *slot) | 
| void | reset () | 
| void | cleanup () | 
| bool | isdynamic () const | 
Public Attributes | |
| Slot * | slot | 
| VSlot * | next | 
| int | index | 
| int | changed | 
| std::vector< SlotShaderParam > | params | 
| bool | linked | 
| float | scale | 
| int | rotation | 
| vec | angle | 
| ivec2 | offset | 
| vec2 | scroll | 
| int | layer | 
| float | alphafront | 
| float | alphaback | 
| vec | colorscale | 
| vec | glowcolor | 
| float | refractscale | 
| vec | refractcolor | 
A virtual texture slot.
A virtual texture slot ("VSlot") is a derivative of a standard texture slot; it contains modification information (such as rotation, translation, tinting, and modifications to other shader settings) but not the fundamental attributes of a texture.
Each VSlot must point to a normal slot to have any meaning; it is from this slot object where the VSlot gets the attributes of its texture files and shader definition information.