-
Notifications
You must be signed in to change notification settings - Fork 0
B2d_shape_get_type
hpgDesigns edited this page Aug 8, 2021
·
1 revision
Gets the type of the given shape and returns the result.
| Parameter | Description |
|---|---|
| id | index of the shape |
integer: Returns the shape constant of the shapes type.
// demonstrates getting the type of a shape
switch (b2d_shape_get_type(myshape, 1)) {
case b2d_polygon:
// its a polygon shape
break;
case b2d_edge:
// its an edge shape
break;
}
NOTOC
This is number 1