je ne trouve pas cette fonction avec CsGlCitation:
edit] ps: le flush n'est pas la même chose que le swapbuffer
et voici mon code maintenant , mais je trouve toujours les resultats que j'ai mit precedamment
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 public override void glDraw() { GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT | GL.GL_STENCIL_BUFFER_BIT); if (this.Snap == true) this.SnapStencil(); } privatevoid SnapStencil() { this.Data = newbyte[(this.Height)*(this.Width)*3]; GL.glReadBuffer(GL.GL_BACK); try { GL.glReadPixels(1,1, this.Width, this.Height,GL.GL_RGB, GL.GL_UNSIGNED_BYTE, Data); } catch (Exception e) { MessageBox.Show("erreur :" + e.ToString()); } int x = 0; }