We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,657 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

OpenGL redirect output

I want to use opengl to draw some stuff, not to the screen but to a data buffer instead. Is this possible? IE:

uint32_t *data;
glSetDrawTarget(data,GL_RGBA|GL_UNSIGNED_INT_8_8_8_8);//this is the line I cannot figuro out how to do
glBegin(GL_TRIANGLES);
//...
glEnd();
//and now my buffer is full of custom data
glSetDrawTarget(NULL,NULL);//reset to screen?
1
Contributor
0
Replies
1
View
Labdabeta
Practically a Master Poster
613 posts since Feb 2011
Reputation Points: 27
Solved Threads: 31
Skill Endorsements: 1

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0971 seconds using 2.74MB