mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-18 03:24:15 -04:00
Replace C++/CLI components with P/Invoke components (#562)
* Replace C++/CLI components with P/Invoke * Deleted C++/CLI projects * Use Utf8StringHandle to marshal UTF-8 strings * Use plaform-default calling convention * Handle DLL preloading on Linux and macOS * Change intermediate and output directories of native projects * Improve P/Invoke documentation
This commit is contained in:
29
Texture2DDecoderNative/pvrtc.h
Normal file
29
Texture2DDecoderNative/pvrtc.h
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef PVRTC_H
|
||||
#define PVRTC_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint8_t r;
|
||||
uint8_t g;
|
||||
uint8_t b;
|
||||
uint8_t a;
|
||||
} PVRTCTexelColor;
|
||||
|
||||
typedef struct {
|
||||
int r;
|
||||
int g;
|
||||
int b;
|
||||
int a;
|
||||
} PVRTCTexelColorInt;
|
||||
|
||||
typedef struct {
|
||||
PVRTCTexelColor a;
|
||||
PVRTCTexelColor b;
|
||||
int8_t weight[32];
|
||||
uint32_t punch_through_flag;
|
||||
} PVRTCTexelInfo;
|
||||
|
||||
int decode_pvrtc(const uint8_t *, const long, const long, uint32_t *, const int);
|
||||
|
||||
#endif /* end of include guard: PVRTC_H */
|
Reference in New Issue
Block a user