| |
|
|
| openGL: small Spielerei - DesktopTextur
Should too very liquid walk! CompileMarkSeparation//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 ... | 10/31/07 ▲ |
|
|
|
|
Rolf Koch | wisely - Black - wisely - Black and remaining so. it comes nothing? |
|
|
| |
|
|
|
Christian Eichler | Thanks your Program, iF, is me strain PC of my mother's abgestürzt ! On my PC though funktionniert your Program
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 | 10/31/07 ▲ |
|
|
|
|
Dieter Zornow | by me runs it, lasts of course a while To time something appear, then GEHTS but super.
Greeting from 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 | 10/31/07 ▲ |
|
|
|
|
| Möglicherweise lying it on it that the image for Texture not Relationship 1:1 vorliegt I Yes just whom Desktop grapsche. Habs on 2 Computern tested - both with NVidiakarten - functions perfect and RazFatz. |
|
|
| |
|
|
|
Christian Eichler | One kurzes Päuschen (integrally short ) is too by me with of/ one Intel Onboard 64 mb shared Grafikkarte, almost 3 years old, the part |
|
|
| Debian Lenny, Intel Celeron 2,8 Ghz, 768 MB Ram && Win XP Pro, Intel C2D 1,66Ghz, 2 GB Ram ... PROFAN² 6.6 | 10/31/07 ▲ |
|
|
|
|
| Nachtrag: Have me the Prog. even into Quick Start-groin laid and if I now draufklicke can I crazy Screenshots produce - see Appendix. |
|
|
| |
|
|
|
GDL | @ Dieter
with you GEHTS at a single blow? what haste now where tuned?
Hello Georg |
|
|
| |
|
|