vbb
New Member
Posts: 2
|
Post by vbb on May 6, 2018 12:51:25 GMT -8
Is there a way to read the RAM_G back out again?
I see there is a private rd_n() which is also used in void GDClass::get_inputs(void) {
I exposed rd_n as public in the library but it didn't seem to fill with the graphics data with the call
GD.rd_n(0, buf, 100);
It's my first day with the GD3 so maybe I missed something with respect to setting up the command stream for reading or something.
Cheers, JC
|
|
vbb
New Member
Posts: 2
|
Post by vbb on May 6, 2018 13:11:50 GMT -8
>setting up the command stream for reading or something.
OK.. so I found my problem. I had to use GD.finish(); assumedly to execute the previous commands and write the data to be able to read it.
GD.finish(); GD.rd_n(0, buf , 100);
Excited.. I can now progress.
|
|
|
Post by jamesbowman on May 6, 2018 17:10:44 GMT -8
Glad you found it.
Yes, to explain for the next person. Like OpenGL EVE buffers commands, so when doing a read back you have to wait until it has "caught up". GD.finish() is just like glFinish().
|
|