Original Post
🔒 Locked
glGetFloatv ?????????
Advertisement
void glGetFloatv(
GLenum pname,
GLfloat * params
);
The
*params is a pointer to a suitably sized array to receive the data you''re requesting. The pname specifies what data you''re actually requesting (like GL_MODELVIEW_MATRIX).Different parameters return differently sized amounts of data, so you have to make sure your array is big enough to hold it. The MODEL_VIEW matrix for example needs an array to hold 16 floats.
quote:
Original post by OrangyTangvoid glGetFloatv(
GLenum pname,
GLfloat * params
);
The*paramsis a pointer to a suitably sized array to receive the data you're requesting. Thepnamespecifies what data you're actually requesting (likeGL_MODELVIEW_MATRIX).
Different parameters return differently sized amounts of data, so you have to make sure your array is big enough to hold it. The MODEL_VIEW matrix for example needs an array to hold 16 floats.
But why do I need to return that data, and what happends with
that data after it returns ?
Does this meens that I'm requesting to push m[] matrix into
modelview OR projection
[edited by - cpp_boy on February 1, 2004 10:05:03 AM]
whatever you want... you reqested it after all..
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement