simple 2D vector graphics
#17
(11-04-2022, 11:59 PM)mnrvovrfc Wrote: If the function doesn't have to do a really expensive calculation, then calling it in a 64-bit operating system wouldn't be as pensive as doing it under MS-DOS. Try checking out one of the last "Steve mods" for QB64 v0.954 SDL, with its impressive building on "CONST". I only wanted to go as far as:

Code: (Select All)
CONST QU$ = CHR$(34)
CONST PIE = ATN(1) * 4
CONST DEADBEEF2 = &HDEADBEEFDEADBEEF

Also be glad we don't have to go even further decorating constants like must be done in C, because the C compiler could generate silly warnings because the programmer didn't type-cast something or didn't put "UL" or alike at the end of a number phrase.

Another thing is the mind-boggling C++ code that QB64PE generates only to initialize some variable. It does not rely on the preprocessor for anything, not even for something declared "CONST" in BASIC code.

Wow... I am glad! LoL

As long as it's easy and works and is compatible with most people use, so that it runs out of the box, I'm happy! 

I mean, look at the code for the game I just posted, it's got "rapid application development" written all over it! I mean, I try not to make too much spaghetti code, but I like getting something working fast. C just does not fit that mindset.
Reply


Messages In This Thread
simple 2D vector graphics - by madscijr - 10-27-2022, 07:45 PM
RE: simple 2D vector graphics - by bplus - 10-27-2022, 08:02 PM
RE: simple 2D vector graphics - by madscijr - 10-27-2022, 11:11 PM
RE: simple 2D vector graphics - by Pete - 10-27-2022, 10:03 PM
RE: simple 2D vector graphics - by madscijr - 10-27-2022, 11:14 PM
RE: simple 2D vector graphics - by mnrvovrfc - 10-27-2022, 11:33 PM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 01:59 AM
RE: simple 2D vector graphics - by Pete - 10-27-2022, 11:38 PM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 02:02 AM
RE: simple 2D vector graphics - by vince - 10-28-2022, 02:15 AM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 03:48 AM
RE: simple 2D vector graphics - by bplus - 10-28-2022, 05:32 PM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 06:58 PM
RE: simple 2D vector graphics - by bplus - 10-28-2022, 09:26 PM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 09:50 PM
RE: simple 2D vector graphics - by mnrvovrfc - 11-04-2022, 11:59 PM
RE: simple 2D vector graphics - by madscijr - 11-05-2022, 02:09 AM
RE: simple 2D vector graphics - by TempodiBasic - 11-08-2022, 10:17 AM
RE: simple 2D vector graphics - by madscijr - 11-08-2022, 12:25 PM



Users browsing this thread: 13 Guest(s)