Quantcast
Channel: Themen - Paules-PC-Forum.de
Viewing all articles
Browse latest Browse all 42347

@Create("hPic",...)

$
0
0

Quellcode

  1. Declare Handle st, bmp1, bmp2, bild
  2. Declare Int ende
  3. WindowTitle <a title="Click to Continue > by WordShark" class="nsvacvuwqy" href="#46329962"> Fenster<img src="http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png" unselectable="on"></a>"
  4. <a title="Click to Continue > by WordShark" class="nsvacvuwqy" href="#80014538"> Window<img src="http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png" unselectable="on"></a>800, 640
  5. st = @Create("Static", %Hwnd, 10, 20, 200, 100)
  6. oGL("Init", st, 0, 0, 0, 0)
  7. DrawGlScene()
  8. ShowBmp()
  9. ende = 0
  10. WhileNot ende
  11. WaitInput
  12. Case %Key = 2 : ende = 1
  13. EndWhile
  14. OGL("Done")
  15. DeleteObject bmp1
  16. End
  17. Proc ShowBmp
  18. bmp2 = @Create("hPic", 0, "&OGLBMP")
  19. bild = @Create("Bitmap", %HWnd, bmp2, 10, 180)
  20. 'SavePic "G:\OGL.BMP", bmp2
  21. EndProc
  22. Proc DrawGLScene
  23. oGL("Clear")
  24. oGL(<a title="Click to Continue > by WordShark" class="nsvacvuwqy" href="#20240730"> Origin<img src="http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png" unselectable="on"></a>", -1.5, -1.5, -6.0)
  25. oGL("Sphere", 1.5, 32, 32)
  26. oGL("Show")
  27. EndProc
Alles anzeigen

Hallo,
ich möchte gerne eine OGL-Scene in eine Bitmap haben.
Leider funktioniert das nicht so einfach.
Wenn ich im obigen Code &MEMBMP, &DSKBMP oder
&CLPBMP setze, geht das.
&OGLBMP und &SCRBMP scheinen da nicht zu funktionieren.

Oder hängt das am Fenster (Static) ?

Viewing all articles
Browse latest Browse all 42347