Search found 407 matches

by mrToad
Sep 14, 2020 10:50
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 5001

Re: raylib headers

D.J.Peters wrote:@mrToad can you please remove the dead link from your quoted post please ?
Thank you
Joshy
Sorry, got it off now. :) I'll check out your thread more when I can.
by mrToad
Aug 15, 2020 22:44
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 5001

Re: raylib headers

I uploaded a fresh build of raylib 3.0 for FreeBASIC (Windows and Linux 32/64-bit static and dynamic) (No need to put your fine older OpenGL 2.1 cards in the trash. The link to fbraylib-3.0.zip is the same as before) [...] Joshy Thanks Joshy. Although I have mainly a newer card, I always appreciate...
by mrToad
Aug 13, 2020 17:44
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 5001

Re: raylib headers

@D.J.Peters thanks for the explanation of your version of raylib. Regarding 20 bytes for raylib Image struct (resolved) Doing SizeOf(Image) returns 24 bytes, not 20. Many of the raylib structs return different bytes than described in the wiki . For example Mesh is 116 bytes although described as 60 ...
by mrToad
Aug 11, 2020 17:52
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 5001

Re: raylib headers

Regarding the struct of Image, I found only this in the code , but it provides everything about it: // Generate image: plain color Image GenImageColor(int width, int height, Color color) { Color *pixels = (Color *)RL_CALLOC(width*height, sizeof(Color)); for (int i = 0; i < width*height; i++) pixels[...
by mrToad
Aug 11, 2020 17:19
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 5001

Re: raylib headers

D.J.Peters wrote:here are my version of raylib 3.0 (Windows 32/64 bit static and dynamic are included)
Joshy
That works great, thank you! I'm curious what you did to it.
by mrToad
Aug 11, 2020 3:50
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 5001

Re: raylib headers

Issue: I was able to run all the examples on Win 64, but only using raylib 2.6 dll. The 3.0 gives this error on program start: "The program can't start because libgcc_s_seh-1.dll is missing from your computer..." I saw BasicCoder2's similar error (with a different dll missing), but the 64...
by mrToad
Aug 11, 2020 1:10
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 5001

Re: raylib headers

Hello there :) I have ported the raylib headers and some examples to FreeBasic. Wow, thank you! I'm pretty blown away, and need some time to dive into this. This might serve as a drop-in replacement for those folks that wanted to replace EasyGL2D! I'll play around with it when I have a little more ...
by mrToad
Jan 02, 2020 17:05
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 72
Views: 22286

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

Come on we all and I help you for free, what's going on my friend ? But please don't give me the right answer for this fundamental sentence ! [...] I'm sure the current rate of [universe] expansion let us handle your questions. Dr. Prof. D.J.Peters :lol: Joshy This is one of those funny & smart...
by mrToad
Dec 06, 2019 19:12
Forum: General
Topic: Checking if an array is empty.
Replies: 5
Views: 322

Re: Checking if an array is empty.

Thank you fxm. If the array is not empty and if the index value 0 is not within the valid limits of the array, we get: [...] a runtime error for a dynamic array, I don't get any runtime error: Dim As Integer a() ReDim a(10 To 20) '' Comment to alter results. Print "Check method 1:" If @a(0...
by mrToad
Dec 06, 2019 17:25
Forum: General
Topic: Checking if an array is empty.
Replies: 5
Views: 322

Checking if an array is empty.

I noticed in the documentation: '' determining whether an array is empty Dim array() As Integer Print "lbound: "; LBound( array ), "ubound: "; UBound( array ) '' 1 and 0 If LBound( array ) > UBound( array ) Then Print "array is empty" Else Print "array is not empty...
by mrToad
Nov 16, 2019 21:59
Forum: General
Topic: Ptr to an array? (Was: Possible to ReDim with only a ptr?)
Replies: 10
Views: 819

Re: Ptr to an array? (Was: Possible to ReDim with only a ptr?)

Maybe mrToad needs to be able to pass an array to a procedure using a pointer only as argument. Yes, that's what I feel I need to do, exactly! It's nice to see that it's now possible to point to an array descriptor in 1.08! (Although I didn't find the download yet; I'll try your code suggestion for...
by mrToad
Nov 16, 2019 1:20
Forum: General
Topic: GCC compile delay on large projects?
Replies: 14
Views: 4378

Re: GCC compile delay on large projects?

@coderJeff, that insight really does help explain things.

I'm not sure where in my project there are heavy Data statements though, maybe tucked away in an old attached lib, I will look. I don't care for them anyway, but it's nice to understand the problem. Thanks for your reply.
by mrToad
Nov 16, 2019 1:09
Forum: General
Topic: Ptr to an array? (Was: Possible to ReDim with only a ptr?)
Replies: 10
Views: 819

Re: Possible to ReDim with only a ptr?

Thanks both of you. I didn't think so, but I imagined maybe, by backing up in memory to the first element and using SizeOf to reach the header or something. It's fine to confirm that it's not possible. :) @angros47, thanks, I am familiar with that method, and it is best in most cases. The real reaso...
by mrToad
Nov 13, 2019 16:51
Forum: General
Topic: Ptr to an array? (Was: Possible to ReDim with only a ptr?)
Replies: 10
Views: 819

Ptr to an array? (Was: Possible to ReDim with only a ptr?)

I've never done something like this so I was wondering if it's even possible. ReDim an array with only a pointer to it? Type udt As Long x End Type Sub test(a As udt Ptr = 0) If a Then Print a[0].x ReDim Preserve @a(1 To 10) '' This is obviously wrong, but is it possible to code somehow? Print a[0]....
by mrToad
Oct 25, 2019 16:44
Forum: General
Topic: Quick question on Enum's data type
Replies: 33
Views: 1558

Re: Quick question on Enum's data type

One thing that comes to mind now, I don't think FB had as much capability for object oriented coding back when I made that GUI. It all depends when you have coded your GUI. Yea, I couldn't remember before. Now I found that I posted the original version in 2010: https://www.freebasic.net/forum/viewt...

Go to advanced search