Search found 1574 matches
- Nov 07, 2023 23:11
- Forum: Projects
- Topic: simple compressor LZg9
- Replies: 11
- Views: 2704
Re: simple compressor LZg9
No need. Just open a new thread if you want to discuss a different approach
- Nov 07, 2023 22:47
- Forum: Projects
- Topic: simple compressor LZg9
- Replies: 11
- Views: 2704
- Oct 03, 2023 14:47
- Forum: General
- Topic: the POINT(n) function returns a wrong result
- Replies: 6
- Views: 1658
Re: the POINT(n) function returns a wrong result
I might be missing something, but what is wrong with simply doing a cast to get the expected values? screen 2 window(-10,-30)-(-5,-10) line(-9,-28)-(-6,-24) print"Window x-coordinate of the last point=";cast( long, point(2) ) print"Window y-coordinate of the last point=";cast( lo...
- Sep 02, 2023 19:31
- Forum: General
- Topic: Is &H a compile time literal?
- Replies: 10
- Views: 1762
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: 2184
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: 1677
- Aug 15, 2023 17:00
- Forum: General
- Topic: glGenFramebuffers command crash
- Replies: 6
- Views: 1524
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: 1524
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: 1524
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: 4462
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: 31
- Views: 6634
- 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: 349967
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: 1706
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: 31
- Views: 6634
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: 31
- Views: 6634
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
...