Libprimis
Imprimis' 3D destroyable world engine
Loading...
Searching...
No Matches
DecalSlot Struct Referencefinal

#include <slot.h>

Inheritance diagram for DecalSlot:
Slot VSlot

Public Member Functions

 DecalSlot (int index=-1)
int type () const override final
const char * name () const override final
const char * texturedir () const override final
VSlotemptyvslot () override final
int cancombine (int type) const override final
bool shouldpremul (int type) const override final
void reset ()
void cleanup ()
Public Member Functions inherited from Slot
 Slot (int index=-1)
int findtextype (int type, int last=-1) const
 Attempts to find a tex with index type.
void load (int index, Slot::Tex &t)
void load ()
Texture * loadthumbnail ()
 Returns a new texture that is a thumbnail of the slot's texture.
void reset ()
void cleanup ()
Public Member Functions inherited from VSlot
 VSlot (Slot *slot=nullptr, int index=-1)
void addvariant (Slot *slot)
void reset ()
void cleanup ()
bool isdynamic () const

Public Attributes

float depth
float fade
Public Attributes inherited from Slot
int index
int smooth
std::vector< Texsts
Shader * shader
std::vector< SlotShaderParamparams
VSlotvariants
bool loaded
uint texmask
char * grass
Texture * grasstex
Texture * thumbnail
Public Attributes inherited from VSlot
Slotslot
VSlotnext
int index
int changed
std::vector< SlotShaderParamparams
 bitmask containing zero or more bits defined above in the VSlot enum values.
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

Additional Inherited Members

Public Types inherited from Slot
enum  { SlotType_Octa , SlotType_Material , SlotType_Decal }

Detailed Description

Parameters
Aderivative form of a slot intended for decal objects.

Member Function Documentation

◆ cancombine()

int DecalSlot::cancombine ( int type) const
finaloverridevirtual

Reimplemented from Slot.

◆ emptyvslot()

VSlot & DecalSlot::emptyvslot ( )
inlinefinaloverridevirtual

Reimplemented from Slot.

◆ name()

const char * DecalSlot::name ( ) const
finaloverridevirtual

Reimplemented from Slot.

◆ shouldpremul()

bool DecalSlot::shouldpremul ( int type) const
finaloverridevirtual

Reimplemented from Slot.

◆ texturedir()

const char * DecalSlot::texturedir ( ) const
inlinefinaloverridevirtual

Reimplemented from Slot.

◆ type()

int DecalSlot::type ( ) const
inlinefinaloverridevirtual

Reimplemented from Slot.


The documentation for this struct was generated from the following file:
  • /github/workspace/src/libprimis-headers/slot.h