Search found 72 matches

by wallace
Sep 27, 2008 21:21
Forum: General
Topic: Is there a [comprehensive] manual for using OpenGL in FB?
Replies: 3
Views: 1384

OpenGL is OpenGL no matter what language. Lighting is done the same way in all languages: Set up the vectors, assign them to the light, enable lighting, enable your light. A complete guide for OpenGL is available on the OpenGL website. It's called the Redbook (actually, it's called the Programmers G...
by wallace
Sep 26, 2008 2:40
Forum: Beginners
Topic: pixel exact collision detection
Replies: 5
Views: 2018

If you have a real lot of sprites then you may also want to implement a Octree Data Structure to separate your sprites, then do bounding box, then do pixel perfect.
by wallace
Sep 26, 2008 2:39
Forum: Beginners
Topic: OpenGL
Replies: 6
Views: 4016

Another way to do it would be to use GLUT to create your windows instead of freebasic.
by wallace
Sep 26, 2008 2:35
Forum: Sources, Examples, Tips and Tricks
Topic: Real seconds into game seconds
Replies: 11
Views: 3625

Here is the OpenGL Redbook in HTML format: http://www.opengl.org/documentation/red_book/
by wallace
Sep 14, 2008 20:40
Forum: General
Topic: Speed of C emitted code
Replies: 31
Views: 8717

Sslaxx wrote:The point of my reply was that FBC and GCC have one thing in common - they both compile to 32-bit assembly code (both use the GNU assembler and linker, in fact). There is no support for 16-bit libraries or code.
GCC is 64-bit too.
by wallace
Sep 13, 2008 13:22
Forum: General
Topic: Speed of C emitted code
Replies: 31
Views: 8717

Did you have all of GCC's optimizations turned on? GCC can optimize the hell out of your code if you set the flags correctly.
by wallace
Sep 03, 2008 14:04
Forum: Beginners
Topic: Sizeof Array question
Replies: 19
Views: 5839

diffeecult wrote:Hmm...
Sizeof gives me 4, len gives 4 and ubound 10. I was thinking it should be 40 bytes but I'm not sure.

Thanks
That's what I thought. Sizeof was giving you the size of the pointer to the array, not the array itself. Pointers on windows are 4 bytes.
by wallace
Sep 03, 2008 14:03
Forum: Community Discussion
Topic: Chrome is fast!
Replies: 26
Views: 7228

I can't get it because the Mac version isn't out yet. I have this question though, does it load pages so fast because it spiders the current page?
by wallace
Sep 03, 2008 3:11
Forum: Beginners
Topic: Sizeof Array question
Replies: 19
Views: 5839

What's it giving you? If it's giving you 10 then you want sizeof(integerArray) * sizeof(Integer); if it's giving you 4 then you want len(integerArray)
by wallace
Sep 03, 2008 3:09
Forum: General
Topic: Offscreen Buffer vs Writing Directly to ScreenPtr
Replies: 5
Views: 1673

What is this doing? I'm a little confused. A = Image[BufferCount - 320] B = Image[BufferCount + 1] C = Image[BufferCount - 1] D = Image[BufferCount + 320] P = Image[BufferCount] If A <> D And B <> C Then If A = C Then P1 = C Else P1 = P If A = B Then P2 = B Else P2 = P If C = D Then P3 = C Else P3 =...
by wallace
Sep 03, 2008 3:02
Forum: Community Discussion
Topic: Freebasic's grammar
Replies: 6
Views: 2512

There's an existing C emitter? Wow, I have been gone a long time. I'll check it out, unfortunately I have a PPC Mac (yeah, it's old) and would have to change all of the bit field stuff to get it to work. I have an old Ubuntu box around here somewhere I just remembered, maybe I can work on it on that...
by wallace
Sep 03, 2008 2:43
Forum: Community Discussion
Topic: Freebasic's grammar
Replies: 6
Views: 2512

That's still in the works? Sure, I'll help work on that, problem is that I don't have a PC so I could only do code in actual C :? Wait, it's going to be C? What happened to C++, isn't Freebasic an object oriented language now? Sorry, been a while since I've been around here :P Does anyone here even ...
by wallace
Sep 03, 2008 2:17
Forum: Community Discussion
Topic: Freebasic's grammar
Replies: 6
Views: 2512

Freebasic's grammar

Is there a complete grammar FreeBasic out there? I got some free time while I job hunt and was thinking of porting FreeBasic to the Macintosh by taking the grammar to make a concrete parse tree and having the tree spit out stdc++ code.

If anyone wants to help that would be nice too :P
by wallace
Jun 18, 2008 2:45
Forum: General
Topic: Swapping colors in a bitmap
Replies: 4
Views: 2131

This could probably be done much easier by using a custom PUT routine instead of the prebuilt ones.
by wallace
May 15, 2008 14:42
Forum: General
Topic: Creating Videos of FB Programs?
Replies: 8
Views: 3080

You could BSAVE the screen to sequentially named BMPs. Most media creators will load entire sequences all at once. I know that Quicktime will, from there export it to whatever format you'd like.