Your code snippet is missing the important part: the one where you
create the OpenGL ES render surface.
That code is independent of ARTK+ though. You can find good samples
coming with most OpenGL ES implementations (Rasteroid, Vincent). Look
into those samples and just copy the code that setups render targets...
Daniel
Andriamasinoro Rahajaniaina wrote:
> Hi,
> I use windows mobile 2005 with egl for my application
> and I tryed to draw a virtual object over my video
> frame (using bitmap)as below :
> showimage(){
> ....
> // display the image
> hMemDC = CreateCompatibleDC(hdc);
> Old = (HBITMAP) SelectObject(hMemDC, hBitmap);
> bRes = BitBlt(hdc,0, 0, IMAGE_WIDTH, IMAGE_HEIGHT,
> hMemDC, 0, 0, SRCCOPY);
>
> SelectObject(hMemDC, Old);
> DeleteDC(hMemDC);
> }
>
> drawVirtual(){
> //draw virtual cube here
> .....
> eglSwapBuffers(eglDisplay, eglSurface) ;
> }
> by applying these functions, the image (frame video
> and virtual object)is flickered.
> is someone could tell me how make double buffering
> with egl ?
> Regard
>
>
>
> _____________________________________________________________________________
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
>
|