FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

glGetFloatv needs an c-style array-pointer

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
thebinaryblob



Joined: 12 Jun 2009
Posts: 1

PostPosted: Sun Jun 14, 2009 12:48 pm    Post subject: glGetFloatv needs an c-style array-pointer Reply with quote

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
View user's profile Send private message Yahoo Messenger
h3r3tic



Joined: 30 Mar 2004
Posts: 261
Location: Torun, Poland

PostPosted: Sun Jun 14, 2009 3:29 pm    Post subject: Reply with quote

float[2] foo;
glGetFloatv(GL_STUFF, foo.ptr);
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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