Libprimis
Imprimis' 3D destroyable world engine
Loading...
Searching...
No Matches
VSlot Struct Reference

A virtual texture slot. More...

#include <slot.h>

Inheritance diagram for VSlot:
DecalSlot

Public Member Functions

 VSlot (Slot *slot=nullptr, int index=-1)
 
void addvariant (Slot *slot)
 
void reset ()
 
void cleanup ()
 
bool isdynamic () const
 

Public Attributes

Slotslot
 
VSlotnext
 
int index
 
int changed
 
std::vector< SlotShaderParamparams
 
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
 

Detailed Description

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.


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