Aug 11, 2014 at 11:35am UTC
Calling convention
I am pretty sure the following is not the right way to call a C++ method.
So, can anyone suggest something that would be better.
Thanks
An extract of a class ...
class arbitrary_transform
{
.
.
.
public:
arbitrary_transform() ;
~arbitrary_transform() { }
D3DXVECTOR3* GetAffineMidPointNormal( LPD3DXMESH, D3DXVECTOR3* );
D3DXMATRIX CreateLocalAxis( D3DXVECTOR3* , D3DXVECTOR3*, D3DXVECTOR3* );
LPD3DXMESH Mesh_Transform_ArbObject( LPD3DXMESH, D3DXMATRIX );
.
.
.
};
but the methods are called this way . . .
How should it be done ?
_arb.v_normal_II =
_arb.GetAffineMidPointNormal( obj_mesh.inplace, _arb.v_normal_II );
e_tool.current =
_arb.Mesh_Transform_ArbObject( e_tool.current, _arb.arb_transform_A );
Aug 12, 2014 at 3:54am UTC
Yes, that's exactly how it should be called.
But objects with an underscore as a prefix is reserved for the compiler, so it's best not to use them.