| |
|
|
 | openGL: Kleine Spielerei - DesktopTextur
Müsste auch sehr flüssig laufen! KompilierenMarkierenSeparieren//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 und bleibt so. Es kommt nix? |
|
|
| |
|
|
|
 Christian Eichler | Dank deinem Programm, iF, ist mir grad der PC meiner Mutter abgestürzt ! Auf meinem PC allerdings funktionniert dein Programm 
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 | Bei mir corre es, dauert zwar eine Weile bis mal etwas erscheint, dann gehts aber super.
Saluto aus 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 es daran dass das Bild per die Texture nicht im Rapporto 1:1 vorliegt da ich ja einfach nur den Desktop grapsche. Habs auf 2 Computern getestet - beide mit NVidiakarten - funktioniert perfekt und RazFatz. |
|
|
| |
|
|
|
 Christian Eichler | Ein kurzes Päuschen (ganz kurz ) ist auch bei mir mit einer Intel Onboard 64 mb shared Grafikkarte, fast 3 Jahre alt, das 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 ▲ |
|
|
|
|
 | Nachtrag: hab mir das Prog. sogar in die Quickstart-Leiste gelegt und wenn ich nun draufklicke kann ich tolle Screenshots erzeugen - siehe Anhang.  |
|
|
| |
|
|
|
 GDL | @ Dieter
Bei dir gehts auf einmal? Was haste nun wo eingestellt?
Servus Georg |
|
|
| |
|
|