add macOS implementation
This commit is contained in:
12
macos/include/gltfio/materials/uberarchive.S
Normal file
12
macos/include/gltfio/materials/uberarchive.S
Normal file
@@ -0,0 +1,12 @@
|
||||
.global UBERARCHIVE_DEFAULT_OFFSET;
|
||||
.global UBERARCHIVE_DEFAULT_SIZE;
|
||||
|
||||
.global UBERARCHIVE_PACKAGE
|
||||
.section .rodata
|
||||
UBERARCHIVE_PACKAGE:
|
||||
.incbin "uberarchive.bin"
|
||||
UBERARCHIVE_DEFAULT_OFFSET:
|
||||
.int 0
|
||||
UBERARCHIVE_DEFAULT_SIZE:
|
||||
.int 1148763
|
||||
|
||||
12
macos/include/gltfio/materials/uberarchive.apple.S
Normal file
12
macos/include/gltfio/materials/uberarchive.apple.S
Normal file
@@ -0,0 +1,12 @@
|
||||
.global _UBERARCHIVE_DEFAULT_OFFSET;
|
||||
.global _UBERARCHIVE_DEFAULT_SIZE;
|
||||
|
||||
.global _UBERARCHIVE_PACKAGE
|
||||
.section __TEXT,__const
|
||||
_UBERARCHIVE_PACKAGE:
|
||||
.incbin "uberarchive.bin"
|
||||
_UBERARCHIVE_DEFAULT_OFFSET:
|
||||
.int 0
|
||||
_UBERARCHIVE_DEFAULT_SIZE:
|
||||
.int 1148763
|
||||
|
||||
BIN
macos/include/gltfio/materials/uberarchive.bin
Normal file
BIN
macos/include/gltfio/materials/uberarchive.bin
Normal file
Binary file not shown.
13
macos/include/gltfio/materials/uberarchive.h
Normal file
13
macos/include/gltfio/materials/uberarchive.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef UBERARCHIVE_H_
|
||||
#define UBERARCHIVE_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C" {
|
||||
extern const uint8_t UBERARCHIVE_PACKAGE[];
|
||||
extern int UBERARCHIVE_DEFAULT_OFFSET;
|
||||
extern int UBERARCHIVE_DEFAULT_SIZE;
|
||||
}
|
||||
#define UBERARCHIVE_DEFAULT_DATA (UBERARCHIVE_PACKAGE + UBERARCHIVE_DEFAULT_OFFSET)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user