MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / BlockDefs_Tex

Function BlockDefs_Tex

src/Protocol.c:1838–1849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1836}
1837
1838static TextureLoc BlockDefs_Tex(cc_uint8** ptr) {
1839 TextureLoc loc;
1840 cc_uint8* data = *ptr;
1841
1842 if (!IsSupported(extTextures_Ext)) {
1843 loc = *data++;
1844 } else {
1845 loc = Stream_GetU16_BE(data) % ATLAS1D_MAX_ATLASES; data += 2;
1846 }
1847
1848 *ptr = data; return loc;
1849}
1850
1851static BlockID BlockDefs_DefineBlockCommonStart(cc_uint8** ptr, cc_bool uniqueSideTexs) {
1852 cc_string name;

Callers 1

Calls 1

Stream_GetU16_BEFunction · 0.85

Tested by

no test coverage detected