Horde3D

Next-Generation Graphics Engine
It is currently 25.11.2024, 16:09

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 24.05.2012, 15:06 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
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?


Top
 Profile  
Reply with quote  
PostPosted: 24.05.2012, 16:22 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group