View previous topic :: View next topic |
Author |
Message |
thebinaryblob
Joined: 12 Jun 2009 Posts: 1
|
Posted: Sun Jun 14, 2009 12:48 pm Post subject: glGetFloatv needs an c-style array-pointer |
|
|
as the title, I need to pass a c-style array-pointer that points to an array with two elements, and I have no clue how to do this. A float* can't be set to an array, what do I do? |
|
Back to top |
|
|
h3r3tic
Joined: 30 Mar 2004 Posts: 261 Location: Torun, Poland
|
Posted: Sun Jun 14, 2009 3:29 pm Post subject: |
|
|
float[2] foo;
glGetFloatv(GL_STUFF, foo.ptr); |
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|