0

I am working on a game for blackberry playbook and in that game there is a requirement that during gameplay it should take snapshots in random positions and for this requirement I am using following open GL function

glGetIntegerv(GL_FRAMEBUFFER_BINDING_OES, params);

now I have two questions that

  1. After execution this function sets NULL in params (GLUInt*), is this some sort of error if so how could I resolve this error.
  2. Is this the right function to get snapshot, if no what other function should I use?
genpfault
  • 51,148
  • 11
  • 85
  • 139
Ahsan Iqbal
  • 1,422
  • 5
  • 20
  • 39

1 Answers1

2

You could be more lucky using glReadPixels. This function copies a part of the frame buffer into the client memory.

(I assume you're using OpenGL ES since you've mentioned a mobile device.)

Kos
  • 70,399
  • 25
  • 169
  • 233