Restored from previous forum. Originally posted by spider.
hi just have one question when i have this little program that uses
openwindowed screen and i use 3d and sprites on it.. but when i run it
and click the mouse on the window everything disapers little annyoing i tryed to overcome this but failed...
here a little code snippet.. plz help if you can..
OpenWindow(#wnd1, 100, 100, 800, 600,#PB_Window_SystemMenu | #PB_Window_ScreenCentered , "test")
OpenWindowedScreen(UseWindow(#wnd1),0,0,800,600,0,1,1)
Repeat
event.l=WindowEvent()
FlipBuffers()
ClearScreen(0,0,0)
;*****************
DisplaySprite(#logo,0,0)
sc()
If Start3D()
ZoomSprite3D(5,x*2,x*2)
ZoomSprite3D(6,x*2,x*2)
RotateSprite3D(5,v,1)
RotateSprite3D(6,-v,1)
DisplaySprite3D(5,100,40,30)
DisplaySprite3D(6,450,300,30)
Stop3D()
EndIf
If timer=500 And page=1
page=2:timer =0
EndIf
If timer=500 And page=2
page=1:timer=0
EndIf
showstats(page)
If x<=127
x+1
EndIf
v+2
timer+1
Until event=#PB_EventCloseWindow
window fix
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by spider.
well the sc() procedure just displays a little scroller..
i tryed to remove it but same..
btw if i remove the Clearscreen(0,0,0) efter flipbuffers then it doesn't go black but scroller stops and the 3d sprites gets ugly... not all is disapering just the scroller and the background..
the 3d sprites are still there..
well the sc() procedure just displays a little scroller..
i tryed to remove it but same..
btw if i remove the Clearscreen(0,0,0) efter flipbuffers then it doesn't go black but scroller stops and the 3d sprites gets ugly... not all is disapering just the scroller and the background..
the 3d sprites are still there..
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by spider.
hihi i found out the problem... before the Repeat i have this..
if play=1
playmodule(0)
endif
thats whats causeing the problem.. if i remove the playmodule(0)
everything works as i want..
just now to fix so i can playback the (.mod or .xm ) btw is there some way to do this and not being needed to use the midas11.dll.. ??
maybe fmod.dll works better ... dunno ... better try..
well better try to fix it .. any clue's ?
hihi i found out the problem... before the Repeat i have this..
if play=1
playmodule(0)
endif
thats whats causeing the problem.. if i remove the playmodule(0)
everything works as i want..
just now to fix so i can playback the (.mod or .xm ) btw is there some way to do this and not being needed to use the midas11.dll.. ??
maybe fmod.dll works better ... dunno ... better try..
well better try to fix it .. any clue's ?