Skip to navigation

Revs on the BBC Micro

3D objects: objectIndex

Name: objectIndex [Show more] Type: Variable Category: 3D objects Summary: Index range of an object's data in the object data tables Deep dive: Object definitions
Context: See this variable in context in the source code References: This variable is used as follows: * DrawObject calls objectIndex

Given an object type, this table contains the index range for the object's data in the objectTop, objectBottom, objectLeft, objectRight and objectColour tables.
.objectIndex EQUB 0 \ Object type 0 = 0 to 4 EQUB 5 \ Object type 1 = 5 to 8 EQUB 9 \ Object type 2 = 9 to 13 EQUB 14 \ Object type 3 = 14 to 17 EQUB 18 \ Object type 4 = 18 to 24 EQUB 25 \ Object type 5 = 25 EQUB 26 \ Object type 6 = 26 EQUB 27 \ Object type 7 = 27 to 29 EQUB 30 \ Object type 8 = 30 to 31 EQUB 32 \ Object type 9 = 32 to 33 EQUB 34 \ Object type 10 = 34 to 36 EQUB 37 \ Object type 11 = 37 to 38 EQUB 39 \ Object type 12 = 39 to 40