Re: I swear the Germans are mocking me... C_STRUCT aiMeshAnim** mMeshChannels (what?)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Whoops, one last question and I will get out of everyone's hair.

An import function uses a bunch of flags that are Or'd together as a parameter:

aiProcess_CalcTangentSpace = 0x1, 
aiProcess_Triangulate = 0x8, 
aiProcess_JoinIdenticalVertices = 0x2, 
aiProcess_SortByPType = 0x8000, 
 
-SNIP- 
 
const aiScene* scene = importer.ReadFile( pFile, 
aiProcess_CalcTangentSpace | 
aiProcess_Triangulate | 
aiProcess_JoinIdenticalVertices | 
aiProcess_SortByPType); 

Is the correct way to implement that in Eu something like this?

public constant AIPROCESS_CALCTANGENTSPACE = #0001 
public constant AIPROCESS_JOINIDENTICALVERTICES = #0002 
public constant AIPROCESS_MAKELEFTHANDED = #0004 
public constant AIPROCESS_TRIANGULATE = #0008 
public constant AIPROCESS_SORTBYPTYPE = #8000 
 
- SNIP -  
atom flagbits 
flagbits = or_bits(or_bits(or_bits(AIPROCESS_TRIANGULATE, AIPROCESS_CALCTANGENTSPACE), AIPROCESS_JOINIDENTICALVERTICES), AIPROCESS_SORTBYPTYPE) 
aobj = ai_ImportFile("character.md2", flagbits) 
 
Is that correct?  If so, is there a cleaner way to do it? 
 
Thanks! 
 
Steve A. 
 
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu