11-27-2004, 07:57 PM
Nope, works flawlessly on win98SE Custom (with un-official SP2 )
prolly windows messing up
prolly windows messing up
FreeBasic forum and examples/previews quicklist
|
11-27-2004, 07:57 PM
Nope, works flawlessly on win98SE Custom (with un-official SP2 )
prolly windows messing up
11-28-2004, 08:11 AM
Von: unlike SDL where you just can send a caption on the window, you have to make a font routine for that. I'll try to make one so that I could test implement an FPS counter.
11-28-2004, 09:04 AM
Rel, you can change the window's title using tinyptc too, see that mandbrot example: SetWindowText hwnd, str$( (SCR_WIDTH * SCR_HEIGHT * frames) \ tottime ) + " kpixels p/ sec "
You find the window handle using: hwnd = GetActiveWindow Both are at '$include: 'user32.bi'
ew FreeBASIC forums: http://www.freebasic.net/forum/index.php
11-28-2004, 09:08 AM
Hey that's great!!!
BTW, new demos: 1. Julia animator http://rel.betterwebber.com/junk.php?id=31 2. Strange attractor http://rel.betterwebber.com/junk.php?id=32
12-02-2004, 11:18 PM
Although noone probably cares now that FB is out;
Bumpmapping, Rotozoomer and Fractal rotozoomer. All code by me. http://quickhost.qbtk.com/download.php?id=354
12-03-2004, 01:07 AM
While I appreciate the valiant effort to put all the examples in one place, maybe it needs to be put on a static site.
I think I've got to start on a FB community site. There have to be 30 examples or whatever now, and a game here and there.
·~¹'°¨°'¹i|¡~æthérFòx~¡|i¹'°¨°'¹~·-
avinash.vora - http://www.avinashv.net
12-03-2004, 08:35 AM
Dark: Use pointers instead of the direct buffer addressing.
ie: Buffer(y * 640 + x) = pixel is slower than *P = pixel
12-03-2004, 08:26 PM
Quote:Dark: Use pointers instead of the direct buffer addressing. Thanks for the advice, rel, although i dont know how to use pointers. Are they hard to learn, in fact, what are they?
12-04-2004, 12:30 AM
A pointer is an address where some data lies.
For example, in QB: Code: p% = VARPTR (a%) That's not exactly a pointer, but gives you an idea. p% contains now the address of a%. Rel means that you create a pointer to the screen. *P means "the data pointed by P", so "*P = color" is assigning "color" to the memory address pointed by "P". Pointers are not hard at all, it's just "hype". Everyone says pointers are difficult 'cause they never took the time to learn them, so don't trust them. Trust me: pointers are easy.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
12-04-2004, 12:46 AM
Thanks man. How do you set up pointers for direct interface with the gui though?
|
« Next Oldest | Next Newest »
|