From: Mars_999 <ma...@si...> - 2008-08-25 19:11:09
|
I haven't looked at the lib yet, but aren't we just going to work with floats all the time? glmVec2Sub glmVec3Sub glmVec4Sub glmVec2Add glmVec3Add glmVec4Add glmVec2Mul glmVec2Div glmVec2Norm glmVec2Transf glmVec3Cross glmVec3Dot I like that format... ----- Original Message ----- From: Henri Häkkinen To: glsdk-devel Sent: Monday, August 25, 2008 2:04 PM Subject: [Glsdk-devel] [GLm] api The GLM API seems at this moment to use two sets of naming styles. Compare these two for example: glmVecSub2f glmVecLength2f The first function is using a short form for the operation ('sub' as from 'substract') while the other is using long form. Should we simplify the API to look like this: glmVecSub2f glmVecLen2f Althought on the other hand, how do we shorten such stuff as Normalize, Transform, Identity, Inverse? This does not necessary look good: glmVecNorm glmVecTrans glmMatTrans glmMatInv glmMatIdent Is this even a big issue? Comments? If we decide to keep the API as it is now, I think we should lock it in and begin to outline the API reference for it. For later versions, I would like to implement such stuff as colors, quaternions and maybe planes and matrix stacks but this can wait. Bigger priority is to get the current version working and tested for. For Korval: I outlined some API ref in a plain text format. You may find it in 'docs/sdk_reference/glm-apiref' in the latest revision. You may use this as ideas for the DocBook API ref and this file needs to get removed once you migrate it into DocBook. -- Henri 'henux' Häkkinen ------------------------------------------------------------------------------ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ------------------------------------------------------------------------------ _______________________________________________ Glsdk-devel mailing list Gls...@li... https://lists.sourceforge.net/lists/listinfo/glsdk-devel |