| |
|
|
 | openGL: Kleine Spielerei - DesktopTextur
Müsste auch muy flüssig laufen! KompilierenMarcaSeparación//Version:0.0.3
{$cleq}
{$res noversioninfo,nomanifest,icon if.ico}
const framesPerSecond=60
#include oglhelper.inc
#include fps.class
set(Decimals,0)
windowstyle 112
window 0,0 - maxx,maxy
long hPic=create(hPic,0,&DSKBMP)
ogl.window(ogltest7,true,maxx,maxy,$00FFFFFF,1,false,true,framesPerSecond)
ifnot ogl.vsync(true) {
messagebox cant init vsync,,0
ogl.done
}
float realFps=framesPerSecond,rx,ry,t
long sleeper,hPicTex=oGL(GetTextureBMP,hPic,3)
var myFPS=new(FPS,realFps)
ogl.noLight
do {
realFps=myFPS::frame()
case realFPS>framesPerSecond : sleeper=sleeper+realFps
settext hwnd,str$(realFPS)+ FPS, +str$(sleeper)+ SLP
if (realFPS<framesPerSecond) and (sleeper<1000) {
messagebox machine to slow,,0
break
}
whileloop sleeper{}
ogl.clear
ogl.2dnow
t=rx
rx=(maxx-mousex*2)/maxx*90
rx=(rx*0.1)+(t*0.9)
t=ry
ry=(maxy-mousey*2)/maxy*90
ry=(ry*0.1)+(t*0.9)
ogl.2drotate(maxx/2,maxy/2,0,rx*0.5,ry*0.5)
ogl(texture,hPicTex,1)
ogl.rectangle(0-mousex,0-mousey,0-mousex+maxx*2,0-mousey+maxy*2,true)
ogl.show
case (umessage==wm_close) or (iskey(27)) or (mousepressed) :break
}
ogl.done
dispose myFPS
='./../../function-references/XProfan/end/'>end
|
 |
|
| |
|
|
|
 Jörg Sellmeyer | Coooool!  |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 31.10.2007 ▲ |
|
|
|
|
 Rolf Koch | Weis - Schwarz - Weis - Schwarz y restos así. Lo kommt nix? |
|
|
| |
|
|
|
 Christian Eichler | Dank deinem Programa, IF, me está grad el PC meiner Mutter abgestürzt ! Auf mi PC allerdings funktionniert dein Programa 
mfg Christian E. |
|
|
| Debian Lenny, Intel Celeron 2,8 Ghz, 768 MB Ram && Win XP Pro, Intel C2D 1,66Ghz, 2 GB Ram ... PROFAN² 6.6 | 31.10.2007 ▲ |
|
|
|
|
 Dieter Zornow | En me se ejecuta lo, dauert zwar una Weile a veces algo erscheint, entonces gehts aber super.
Saludo de Bangkok
Dieter |
|
|
| Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 31.10.2007 ▲ |
|
|
|
|
 | Möglicherweise liegt lo daran dass el Bild para el Texture no en el Verhältnis 1:1 vorliegt como Yo sí simplemente sólo el Desktop grapsche. Habs en 2 Computern getestet - beide con NVidiakarten - funktioniert perfekt y RazFatz. |
|
|
| |
|
|
|
 Christian Eichler | Ein kurzes Päuschen (bastante kurz ) es auch en me con uno Intel Onboard 64 mb shared Grafikkarte, fast 3 Jahre alt, el Teil |
|
|
| Debian Lenny, Intel Celeron 2,8 Ghz, 768 MB Ram && Win XP Pro, Intel C2D 1,66Ghz, 2 GB Ram ... PROFAN² 6.6 | 31.10.2007 ▲ |
|
|
|
|
 | Apéndice: tener me Prog. incluso en el Quickstart-Leiste gelegt y si yo nun draufklicke kann Yo tolle Screenshots erzeugen - siehe Anhang.  |
|
|
| |
|
|
|
 GDL | @ Dieter
En dir gehts en una vez? Was haste nun wo eingestellt?
Servus Georg |
|
|
| |
|
|