RavEngine
Loading...
Searching...
No Matches
RavEngine::MeshAttributes Struct Reference

Public Member Functions

bool operator== (const MeshAttributes &other) const
 
bool CompatibleWith (const MeshAttributes &other) const
 

Public Attributes

union { 
 
   struct { 
 
      bool   position: 1 
 
      bool   normal: 1 
 
      bool   tangent: 1 
 
      bool   bitangent: 1 
 
      bool   uv0: 1 
 
      bool   lightmapUV: 1 
 
      bool   padding: 2 
 
   }  
 
   uint8_t   bits = 0 
 
};  
 

Member Function Documentation

◆ CompatibleWith()

bool RavEngine::MeshAttributes::CompatibleWith ( const MeshAttributes &  other) const
inline

this is compatible with other if for every bit set to true in this, the corresponding bit in other is also set to true. It does not matter if other has additional bits set.


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