Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   GLES unter Android und iOS (https://www.delphipraxis.net/181721-gles-unter-android-und-ios.html)

CHackbart 4. Sep 2014 19:39

GLES unter Android und iOS
 
Hi,

hat jemand zufällig eine Idee, wie man direkt OpenGL bzw. GLES Kommandos in einem Paint Ereignis innerhalb einer TControl unter Android und iOS übergeben kann?
Ich weiß das man in einer 3D Anwendung im OnPaint den 3DContext bekommt und das dort machen kann. Mir ist auch bekannt, dass ich via:
Delphi-Quellcode:
 eglMakeCurrent(eglGetCurrentDisplay, TCustomAndroidContext.SharedSurface, TCustomAndroidContext.SharedSurface,
      TCustomAndroidContext.SharedContext);
  glDisable(GL_CULL_FACE);
   
  ...
  eglSwapBuffers(TCustomAndroidContext.SharedDisplay, TCustomAndroidContext.SharedSurface);
etwas zeichnen kann. Das jedoch wird logischweise bei einem Neuzeichnen der Anzeige wieder gelöscht.

Christian


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:27 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz