Search found 1188 matches

by paul doe
Sep 20, 2020 10:46
Forum: General
Topic: Sorting Dir() result by date-time attribute
Replies: 18
Views: 320

Re: Sorting Dir() result by date-time attribute

Code: Select all

function compareFdata cdecl (byref fd1 as WIN32_FIND_DATA, byref fd2 as WIN32_FIND_DATA) as LONGINT
...
by paul doe
Sep 19, 2020 11:27
Forum: Beginners
Topic: FBeginner Preview
Replies: 132
Views: 49841

Re: FBeginner Preview

I have been work hard on This rewrite. I have the first 7 chapters done and I need someone to rip them apart. Not formatting, but for content and errors. I don't know if you saw it, but one of the original authors of the ebook has been working on it too, and quite recently. Have a look: https://www...
by paul doe
Sep 19, 2020 11:20
Forum: General
Topic: Callback functions in freebasic
Replies: 7
Views: 362

Re: Callback functions in freebasic

Compare: function test1( ByVal ts As any ptr ) as integer Print *cast( string ptr, ts ) return( -4 ) End function Function test2 ( ByVal tt As String, ByVal f as Function ( ByVal As Any ptr ) As Integer ) As Integer Print "This Is a test" dim as string s => "Testing callback" Ret...
by paul doe
Sep 19, 2020 3:47
Forum: General
Topic: Object oriented programming or 3d graphics?
Replies: 21
Views: 647

Re: Object oriented programming or 3d graphics?

This is the ported code for the 'Hello Triangle' section of the site: #include once "gl/gl.bi" #include once "gl/glext.bi" #include once "fbgfx.bi" #include once "file.bi" #define NULL 0 '' For outputting errors to console sub cout( byref s as const string ) d...
by paul doe
Sep 19, 2020 1:54
Forum: General
Topic: Object oriented programming or 3d graphics?
Replies: 21
Views: 647

Re: Object oriented programming or 3d graphics?

cwolf wrote:Very funny.

Not in the slightest. There are no 'magic commands' to use modern OpenGL, so that link I gave you is quite a good resource, actually. The code's in C, but last time I checked, the concepts you need to learn are explained in plain English.

So no, not funny. Not at all.
by paul doe
Sep 19, 2020 0:29
Forum: General
Topic: Object oriented programming or 3d graphics?
Replies: 21
Views: 647

Re: Object oriented programming or 3d graphics?

cwolf wrote:...
So what command should be used as an alternative?

https://learnopengl.com/

A good start.
by paul doe
Sep 02, 2020 23:15
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 4645

Re: raylib headers

... Important Addition: Something I think very important for raylib to fit into the Basic spirit here, a function to get an FB.Image to GPU, like EasyGL2D had. The easiest solution I could think of was a conversion of FB.Image to raylib Image, but it seems beyond my capabilities. ... It is trivial,...
by paul doe
Sep 02, 2020 21:46
Forum: Libraries
Topic: raylib headers
Replies: 63
Views: 4645

Re: raylib headers

... New Example: It would be nice to have a fb-translated example of scarfy as part of the examples collection, to show loading and animating sprites from a texture. I will try to do this and contribute it. ... /'**************************************************************************************...
by paul doe
Aug 14, 2020 12:36
Forum: Beginners
Topic: How to set the x+y position, width and height of a window or screen
Replies: 6
Views: 188

Re: How to set the x+y position, width and height of a window or screen

... According to the manual, ScreenControl(SET_WINDOW_POS (100), x, y) would be the way to go: "Sets the current program window position, in desktop coordinates". After some trial and error (error 42: Variable not declared, SET_WINDOW_POS in 'set(z)'), it turns out that a simple ScreenCon...
by paul doe
Aug 14, 2020 11:32
Forum: Beginners
Topic: How to set the x+y position, width and height of a window or screen
Replies: 6
Views: 188

Re: How to set the x+y position, width and height of a window or screen

jj2007 wrote:...
How can I set the x+y position, width and height of a window or screen?
...

Code: Select all

#include once "fbgfx.bi"

screenRes( 1200, 600, 32 )
screenControl( Fb.SET_WINDOW_POS, 100, 50 )

sleep()
by paul doe
Jul 25, 2020 11:56
Forum: Libraries
Topic: ttf examples on 64-bit systems?
Replies: 4
Views: 437

Re: ttf examples on 64-bit systems?

Here's one example that uses both Cairo and FreeType to load and render fonts: #include once "inc/cairo/cairo.bi" #include once "inc/freetype2/freetype.bi" '' The FB headers don't contain this prototype extern "C" declare function _ cairo_ft_font_face_create_for_ft_face...
by paul doe
Jul 25, 2020 1:33
Forum: General
Topic: Squares
Replies: 8041
Views: 508607

Re: Squares

albert wrote:...
When was "multiplicative reciprocal" invented???

When i came up with the idea...

Wikipedia wrote:...
The term reciprocal was in common use at least as far back as the third edition of Encyclopædia Britannica (1797)
...

So, that must mean you are at least 223 years old... wow! Mind blowing!
by paul doe
Jul 25, 2020 0:55
Forum: General
Topic: Squares
Replies: 8041
Views: 508607

Re: Squares

... Back in "Circles" , I invented a way to divide by multiplying , you divide 1 by one number , and then multply the two numbers.. Oh, so it was you who 'invented' the multiplicative reciprocal ? Who would have thought... You need to go back to what you do best: writing songs. Seriously.
by paul doe
Jul 21, 2020 23:54
Forum: Tips and Tricks
Topic: Animation Class
Replies: 5
Views: 974

Re: Animation Class

... So, what does this to the version that I downloaded in 2018 with the MIT licence? Seems to me that can put it online for download or even sell it, if I wanted that. (same for your framework of which I have a copy from January this year) Absolutely nothing, of course. The license was/is MIT, whi...
by paul doe
Jul 21, 2020 19:08
Forum: Tips and Tricks
Topic: Animation Class
Replies: 5
Views: 974

Re: Animation Class

Update: as of 7/21/2020, this code is no longer available.

Go to advanced search