Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FreeBasic forum and examples/previews quicklist
#51
Nope, works flawlessly on win98SE Custom (with un-official SP2 Tongue )


prolly windows messing up Big Grin
Reply
#52
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.
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#53
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'
Reply
#54
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
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#55
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
Reply
#56
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
Reply
#57
Dark: Use pointers instead of the direct buffer addressing.

ie:
Buffer(y * 640 + x) = pixel

is slower than

*P = pixel
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#58
Quote:Dark: Use pointers instead of the direct buffer addressing.

ie:
Buffer(y * 640 + x) = pixel

is slower than

*P = pixel

Thanks for the advice, rel, although i dont know how to use pointers. Are they hard to learn, in fact, what are they?
Reply
#59
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
Reply
#60
Thanks man. How do you set up pointers for direct interface with the gui though?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)