Search found 1571 matches
- Sep 02, 2023 19:31
- Forum: General
- Topic: Is &H a compile time literal?
- Replies: 10
- Views: 1747
Re: Is &H a compile time literal?
Seems to me it is, or it isn't. Your explanation states that it could sometimes be a Literal and sometimes not. This applies not just to &H but to all of the prefixes. Perhaps they should be called that: Prefixes or Type Prefixes. That's what he's telling you: it's a prefix for literals , not f...
- Aug 31, 2023 11:10
- Forum: Windows
- Topic: ScreenRes problem
- Replies: 7
- Views: 2139
Re: ScreenRes problem
... Using Screenlist the output says I can have a screen of 2560 x 1440 ... But it probably doesn't say that it supports it at 320x200x8, right? You can run the code (provided in the example section of the Wiki page for ScreenList ) to see the fullscreen modes available: Dim As Long mode Dim As UIn...
- Aug 18, 2023 16:43
- Forum: Windows
- Topic: Create sub to qbasic style
- Replies: 6
- Views: 1648
- Aug 15, 2023 17:00
- Forum: General
- Topic: glGenFramebuffers command crash
- Replies: 6
- Views: 1506
Re: glGenFramebuffers command crash
Also noticed that you're missing a call to opengl_init() somewhere in your code. Do it after you've set up the context (via screenRes ), like this: '' Set up context screenRes( w, h, d, , Fb.GFX_OPENGL ) '' Load extensions opengl_init() Otherwise the aliases contain just null pointers (hence the cra...
- Aug 15, 2023 14:23
- Forum: General
- Topic: glGenFramebuffers command crash
- Replies: 6
- Views: 1506
Re: glGenFramebuffers command crash
I had some code lying on my HD, that illustrates how you can use Fb.Image buffers with OpenGL: /' Much like the Shader type, this type is used for convenience, to create and store an OpenGL texture object. The format used is directly compatible with FB buffers. '/ type OGLtexture public: declare con...
- Aug 15, 2023 14:01
- Forum: General
- Topic: glGenFramebuffers command crash
- Replies: 6
- Views: 1506
Re: glGenFramebuffers command crash
The context is already created on the call to screenres . Problem is here: dim as GLuint Ptr depth_fbo depth_fbo=ImageCreate(screen_width,screen_height) ' the program crash if i add this line: 'glGenFramebuffers(1,depth_fbo) That's wrong. Fb image buffers are not compatible with those of GL's (they ...
- Aug 06, 2023 18:58
- Forum: Community Discussion
- Topic: ChatGPT
- Replies: 23
- Views: 4408
Re: ChatGPT
Interesting that it went directly to barycentric coordinates. Perhaps if you ask it for a ray-triangle intersection (3D) it will go for Möller-Trumbore as well?
- Jul 19, 2023 6:04
- Forum: Game Dev
- Topic: Star Trader Game (In-progress)
- Replies: 30
- Views: 5822
- Jul 17, 2023 23:34
- Forum: Projects
- Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.1.0 June 4, 2023)
- Replies: 981
- Views: 347688
Re: Error cannot compile - the program is now running in WINFBE
Hello: ... Welcome to the forum. As you can see, I have moved your post to this topic, which is where questions about WinFBE are usually resolved. This is because you'll have a better chance for an answer here, since Paul is probably subscribed to this topic and he'll get notifications every time s...
- Jul 16, 2023 15:05
- Forum: Beginners
- Topic: Passing string parameters to subroutine
- Replies: 5
- Views: 1688
Re: Passing string parameters to subroutine
... I want to avoid making a local copy of the string within the subroutine (the string could be 4MB in size), so I'm thinking that I could pass the size and string pointer as parameters rather than the string itself. However, how would I then use Instr to search for text data within the string? I ...
- Jul 05, 2023 3:47
- Forum: Game Dev
- Topic: Star Trader Game (In-progress)
- Replies: 30
- Views: 5822
Re: Star Trader Game (In-progress)
... I need ideas for trade items so if you have any suggestions or know of a good source of information I can use let me know. A good source of ideas could be Frank Herbert's Dune series. There's only one planet in the known universe that has a unique resource: Melange, also known as 'spice', which...
- May 31, 2023 0:40
- Forum: Game Dev
- Topic: Star Trader Game (In-progress)
- Replies: 30
- Views: 5822
Re: Star Trader Game (In-progress)
It is surprisingly good at the first, not that good on the secondBasicCoder2 wrote: ↑May 31, 2023 0:24 ...
Maybe chatGPT can write some dialog Maybe it can write the whole program
...
- May 30, 2023 21:01
- Forum: Game Dev
- Topic: Star Trader Game (In-progress)
- Replies: 30
- Views: 5822
Re: Star Trader Game (In-progress)
Hey! Nice to see you're still at it after all these years!
Looks really nice. Really excited and looking forward to seeing more
Looks really nice. Really excited and looking forward to seeing more
- May 30, 2023 14:53
- Forum: Sources, Examples, Tips and Tricks
- Topic: Word Clock
- Replies: 77
- Views: 5423
Re: Word Clock
... Albert made some nice contributions to this forum over the years in many different fields. I was sorry to see him kicked out for over zealous coding, nothing more, nothing less. ... Perhaps you might want to follow him at encode.su if you miss him so much? Or to continue helping him with his nu...
- May 30, 2023 2:36
- Forum: General
- Topic: FreeBasic's Timer
- Replies: 253
- Views: 15241
Re: FreeBasic's Timer
... Does anyone know how game programmers handle this problem? ... Have a look at https://gafferongames.com/post/fix_your_timestep/ to have a glimpse of the challenges involved (and consider that the article is pretty old!). Perhaps this might explain the overall apathy: while useful, the code disc...