|
RavEngine
|
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 | ||
| }; | ||
|
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.