Jump to content
  • Advertisement
Sign in to follow this  
jake_Ghost

FSOUND_3D_Listener_SetAttributes

This topic is 4824 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I get all the values that I need for this function? I am using openGL
void F_API FSOUND_3D_Listener_SetAttributes(
const F_FLOAT_API *pos,
const F_FLOAT_API *vel,
F_FLOAT_API fx,
F_FLOAT_API fy,
F_FLOAT_API fz,
F_FLOAT_API tx,
F_FLOAT_API ty,
F_FLOAT_API tz
);


Parameters
pos Pointer to a position vector (xyz float triplet), of the listener in world space, measured in distance units.
This can be NULL to ignore it.
 
vel Pointer to a velocity vector (xyz float triplet), of the listener measured in distance units PER SECOND.
This can be NULL to ignore it.
 
fx x component of a FORWARD unit length orientation vector
 
fy y component of a FORWARD unit length orientation vector
 
fz z component of a FORWARD unit length orientation vector
 
tx x component of a TOP or upwards facing unit length orientation vector
 
ty y component of a TOP or upwards facing unit length orientation vector
 
tz 

From what I know, i can use 
double mMatrix[16];
								glGetDoublev(GL_MODELVIEW_MATRIX,mMatrix);

but I dont know how to get teh values out of that


Thanks Jake [Edited by - jake_Ghost on June 3, 2005 11:43:38 PM]

Share this post


Link to post
Share on other sites
Advertisement
The values will be in the array mMatrix. Just access the elements of the array.

float something = mMatrix;

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!