1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef SQUISH_COLOURSET_H
- #define SQUISH_COLOURSET_H
- #include "squish.h"
- #include "maths.h"
- namespace squish {
- class ColourSet
- {
- public:
- ColourSet( u8 const* rgba, int mask, int flags );
- int GetCount() const { return m_count; }
- Vec3 const* GetPoints() const { return m_points; }
- float const* GetWeights() const { return m_weights; }
- bool IsTransparent() const { return m_transparent; }
- void RemapIndices( u8 const* source, u8* target ) const;
- private:
- int m_count;
- Vec3 m_points[16];
- float m_weights[16];
- int m_remap[16];
- bool m_transparent;
- };
- }
- #endif
|