Horde3D
http://horde3d.org/forums/

h3dGetNodeTransMats and h3dSetNodeTransMat
http://horde3d.org/forums/viewtopic.php?f=2&t=1670
Page 1 of 1

Author:  tshannon [ 24.05.2012, 15:06 ]
Post subject:  h3dGetNodeTransMats and h3dSetNodeTransMat

I'm writing a wrapper for the Go language for horde, and I want to make sure I understand these two calls:

h3dGetNodeTransmats
and
h3dSetNodeTransMat

In h3dGetNodeTransmats, the matrix is defined as
Code:
 const    float    **   relMat
, a pointer to a pointer, while h3dSetNodeTransMat is simply
Code:
const    float    *   mat4x4
a pointer to an array, correct?

Why the difference, and am I right in understanding that in all instances the underlying data structure is simply a array with 16 elements?

Author:  Volker [ 24.05.2012, 16:22 ]
Post subject:  Re: h3dGetNodeTransMats and h3dSetNodeTransMat

h3dGetNodeTransMats returns a pointer to the internal matrix (which is a float array), thats why it is a pointer to a pointer.
In h3dSetNodeTransmat the given 16 float array values will be copied.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/