Lisias
Space Traveller Wanna-be
Hi.
Is there any already implemented means to address a Group on the Mesh by LABEL, and not by index?
So, in exchange on using this:
I want to use something as:
Where vcmesh_tpl is the handler to a previously loaded mesh where the 16th group has the label "PILOT_LEFT_MFD_SCREEN" and the italiced identifier is my hypothetical function.
Alternatively, one could manage this by:
Is there any already implemented means to address a Group on the Mesh by LABEL, and not by index?
So, in exchange on using this:
Code:
SURFHANDLE suface = oapiGetTextureHandle (vcmesh_tpl, 16);
I want to use something as:
Code:
SURFHANDLE suface = [I]customapiGetTextureHandle[/I] (vcmesh_tpl, "PILOT_LEFT_MFD_SCREEN");
Where vcmesh_tpl is the handler to a previously loaded mesh where the 16th group has the label "PILOT_LEFT_MFD_SCREEN" and the italiced identifier is my hypothetical function.
Alternatively, one could manage this by:
Code:
uint groupIndex = [I]customapiGetIndexByLabel[/I](vcmesh_tpl, "PILOT_LEFT_MFD_SCREEN");
SURFHANDLE suface = oapiGetTextureHandle (vcmesh_tpl, groupIndex);
Last edited: