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?
Related Article: Using classes to retrieve data in c++
is a C++ discussion thread by dilequeno that has 3 replies, was last updated 1 year ago and has been tagged with the keywords: class, data, mining, object.
Labdabeta
Practically a Master Poster
613 posts since Feb 2011
Reputation Points: 27
Solved Threads: 31
Skill Endorsements: 1