Search found 212 matches

by GBeebe
Tue Apr 12, 2011 3:56 am
Forum: Linux
Topic: No installer for linux?
Replies: 28
Views: 8675

Re: No installer for linux?

by GBeebe
Fri Mar 18, 2011 7:10 am
Forum: Coding Questions
Topic: Passing a structure to a DLL
Replies: 3
Views: 1130

Re: Passing a structure to a DLL

*MyVar.MyStructure = Your_Function()

Sorry, I don't have PB installed on this computer. You don't have to use copy memory like you said. You can assign a pointer, defined as a structure, a memory value returned by the dll. So your functions can do something like this:

ProcedureReturn @DLLVar ...
by GBeebe
Wed Mar 16, 2011 4:44 am
Forum: Game Programming
Topic: 3D Racing Game Question
Replies: 12
Views: 6344

Re: 3D Racing Game Question

I like A* path finding, with quad trees, but in a racing game, your cars are trying to get from point A to point A again. How would you force A* to do laps?
by GBeebe
Fri Feb 25, 2011 7:51 am
Forum: Linux
Topic: Sprite3DQuality()
Replies: 0
Views: 1152

Sprite3DQuality()

I don't know if anyone can provide the answer, and it's not greatly important, I'm just curious:

I've been working on a 2d sprite engine in PB with opengl and one thing I can't figure out how to do is implement a function similar to Sprite3DQuality(). It is my understanding, in OpenGL, to set the ...
by GBeebe
Wed Feb 23, 2011 6:16 am
Forum: Linux
Topic: mouse wheel
Replies: 4
Views: 2110

Re: mouse wheel

When using OpenGL, I start with SDL to create the window for me:

Screen = SDL_SetVideoMode_(width, height, depth, #SDL_OPENGL | #SDL_FULLSCREEN)

Then, to get your wheel events:

While SDL_PollEvent_(@Event.SDL_Event)

Select Event\Type
Case #SDL_MOUSEBUTTONDOWN
If Event\button\button = 4 ...
by GBeebe
Mon Feb 07, 2011 11:33 pm
Forum: Coding Questions
Topic: sprite probs on a netbook?
Replies: 3
Views: 1285

Re: sprite probs on a netbook?

Non-squared sprites?
by GBeebe
Mon Feb 07, 2011 6:37 am
Forum: Coding Questions
Topic: Can this be done: Overlay one image (bmp/ico) with another?
Replies: 2
Views: 1115

Re: Can this be done: Overlay one image (bmp/ico) with anoth

Assuming you're using your own "file browser" to display the images. You can use DrawImage() to place one image over another. Then use that as the "icon" of the file.
by GBeebe
Sat Jan 15, 2011 7:07 am
Forum: Linux
Topic: debugger and OpenConsole()
Replies: 4
Views: 2914

debugger and OpenConsole()

I just noticed, when using PrintN() that the debugger will halt the program and complain if I haven't previously used OpenConsole(), but with the debugger off and no OpenConsole() PrintN() works just fine. Just thought that I'd point that out.

Note: I don't know if this anomaly exists in the newer ...
by GBeebe
Sat Jan 15, 2011 6:41 am
Forum: Coding Questions
Topic: timeout for lockmutex()?
Replies: 10
Views: 2136

Re: timeout for lockmutex()?

@cas, I also over looked TryLockMutex() while I was wondering if there was a way to go ahead and do other stuff until the mutex was unlocked. Good tip.

I don't think a program should 'hang' at LockMutex() because (if I understand correctly) that request would get in line and wait it's turn ...
by GBeebe
Sun Dec 26, 2010 5:29 am
Forum: Linux
Topic: KeyboardInkey() in Ubuntu 10.10 PB4.51?
Replies: 2
Views: 1607

Re: KeyboardInkey() in Ubuntu 10.10 PB4.51?

Yup, common problem. I think InitKeyboard() should set KeyboardMode(#PB_Keyboard_International) by default.
by GBeebe
Wed Dec 22, 2010 5:09 am
Forum: Linux
Topic: gzip anyone?
Replies: 4
Views: 2434

Re: gzip anyone?

I guess I didn't see it here then. I didn't figure it was going to be that easy. Looks like I have some research to do. Thank for the pointers guys.
by GBeebe
Mon Dec 20, 2010 5:49 am
Forum: Linux
Topic: gzip anyone?
Replies: 4
Views: 2434

gzip anyone?

I thought I saw this once, but after searching the forums I haven't been able to find it. What I'm looking for is sample code that will let you let you extract a file (by name) from a zip into memory. The only thing I've been able to find, however, code to use wrappers that use gzip instead of ...
by GBeebe
Sun Dec 19, 2010 6:43 am
Forum: Tricks 'n' Tips
Topic: Buddy Windows
Replies: 12
Views: 7252

Re: Buddy Windows

Wow, netmaestro, this had me confused for a bit. I saw that you were talking about the beta of 4.1 and left me thinking why you weren't using anything newer yet, then I saw the date. But then I lol'd at the thought of you taking 3 years to come up with a smart remark about 2 windows no longer being ...
by GBeebe
Tue Dec 14, 2010 4:20 am
Forum: Linux
Topic: Mouse events on WidowedScreen
Replies: 1
Views: 1492

Re: Mouse events on WidowedScreen

I don't know about opengl with gtk, but you can use opengl with sdl:

Screen = SDL_SetVideoMode_(width, height, depth, #SDL_OPENGL | #SDL_HWSURFACE)

Then you can get mouse and keyboards through the SDL_PollEvent
by GBeebe
Sun Dec 05, 2010 4:49 am
Forum: Coding Questions
Topic: A VERY weird problem on ubuntu.
Replies: 3
Views: 970

Re: A VERY weird problem on ubuntu.

also, if you ./purebasic from a terminal, all Print and PrintN outputs will go to that terminal.