Search found 679 matches

by h4tt3n
Apr 10, 2020 6:49
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 20
Views: 1169

Re: fbgfx versus opengl graphics

With lang fb it's in namespace FB fb.GET_WINDOW_TITLE works. That's it! Forgot the namespace. Should have learned by now not to code when tired. So, to turn on open gl back end rendering, you simply calll: ScreenConrtol fb.SET_GL_2D_MODE Without parameters? I tried the following before secreenres, ...
by h4tt3n
Apr 09, 2020 16:10
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 20
Views: 1169

Re: fbgfx versus opengl graphics

My Mistake: Here in the Screen Control: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgScreencontrol You can set OpenGL as the backend driver for FBGFX. I'm having a little trouble deciphering the info from the link and getting this to work. I keep getting the following error. "error 42: ...
by h4tt3n
Dec 07, 2019 19:57
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 836

Re: Sharing some good news :-)

leopardpm wrote:will you be using FB as your main language at the job?


No, they aren't using FB in-house. But, I'll be pestering my colleagues about how awesome it is, and maybe some day they'll give in :-)
by h4tt3n
Dec 06, 2019 14:16
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 57
Views: 24394

Re: FreeBasic communication with Arduino logic error?

Hello folks, This was a great read, thanks for a super tutorial on just exactly the topic I was searching for! Can you tell me what the best strategy is for sending large amounts of data between a running FB application and an Arduino? Basically I want to update a group of member vars in a type inst...
by h4tt3n
Dec 06, 2019 8:18
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 836

Re: Sharing some good news :-)

D.J.Peters wrote:Congratulations on the new job, in which programming area ?Joshy


It's at a small company that develops sensor hardware and writes all software from low-level controller code to customer user interfaces in the house. So, it's a mixed bag, but to begin with I think it will be mostly high-level stuff.
by h4tt3n
Dec 03, 2019 17:05
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 836

Re: Sharing some good news :-)

dodicat wrote:Well done.
Well written fb looks cool and runs well.
You forum contributions are all in this category.


Thank you for the kind words dodicat.
by h4tt3n
Dec 03, 2019 10:30
Forum: Community Discussion
Topic: Sharing some good news :-)
Replies: 9
Views: 836

Sharing some good news :-)

Hello folks,

I just wanted to tell you this. Yesterday I was at a programming job interview, and I only used FreeBASIC code examples to show my skills. And I got the job! :-)

Cheers, Mike
by h4tt3n
Nov 11, 2019 20:58
Forum: Projects
Topic: FreeBASIC Extended Library build
Replies: 4
Views: 4571

Re: FreeBASIC Extended Library build

Great, thanks!
by h4tt3n
Sep 22, 2019 9:23
Forum: General
Topic: Function parameter call by reference?
Replies: 3
Views: 1577

Re: Function parameter call by reference?

Thanks. This confirms what I thought, that it should simply be @w, @h, but this returns a suspicious pointer warning and doesn't work. So, I'm guessing there may be a small error either in the original code or in the FB SDL header.
by h4tt3n
Sep 22, 2019 8:44
Forum: General
Topic: Function parameter call by reference?
Replies: 3
Views: 1577

Function parameter call by reference?

Hello folks, while translating this SDL2 tutorial to fb, I've run into a challenge. /** * Draw an SDL_Texture to an SDL_Renderer at position x, y, preserving * the texture's width and height * @param tex The source texture we want to draw * @param ren The renderer we want to draw to * @param x The x...
by h4tt3n
Sep 21, 2019 17:11
Forum: General
Topic: First try at extended classes
Replies: 26
Views: 3312

Re: First try at extended classes

I have another extended class question. Lets say I have a base class astro_object and 2 extended classes planet_type end comet_type (each with there own added properties and methods). Next I have 2 classes containing a list planets and a list of comets: planet_list_type and comet_list_type . All ni...
by h4tt3n
Sep 02, 2019 19:10
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 29189

Re: Physics question

Cool, I see that you have a 'slightly' modified the gravitational constant, else thing would be very slow. For linux systems: Dim shared as Single Double FPS_Timer, t0 It's just a constant, you can give it any value you want. The real G is just as arbitrary, it depends on the random units we use. I...
by h4tt3n
Sep 02, 2019 11:56
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 29189

Re: Physics question

I'm still around :-) Here, as promised, are some space physics examples. Some are rather old, but I'll just post them as they are, warts and all. First, a vector library and a ball shaped space ship, asteroids in orbit around a central planet, also featuring collision with friction. You control the ...
by h4tt3n
Aug 27, 2019 9:41
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 29189

Re: Physics question

Oh man, this is just my kind of thread :-) Awesome to come back to the forums after a long break to see you guys hard at work making cool stuff! I have made loads of space physics doodle stuff just like this in the past few years, just gimme a bit of time and I'll dig out some stuff that is definite...

Go to advanced search