| 1836 | } |
| 1837 | |
| 1838 | static 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 | |
| 1851 | static BlockID BlockDefs_DefineBlockCommonStart(cc_uint8** ptr, cc_bool uniqueSideTexs) { |
| 1852 | cc_string name; |
no test coverage detected