Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - bigsofty

#2491
Not too bad at all... :)
#2492
GLBasic - en / INLINE calls
2007-Nov-12
Quote from: GernotFrischOK. We've already started on an OpenGL wrapper. If only I could find it....
OpenGL Wrapper for GLBasic? Any info? If its a lib that can allow me to insert OpenGL commands directly into my GLBasic source, without having to resort to in-line C, then that would be REALLY helpful! :D
#2493
I actually prefer Pascal... simple as basic and powerful as C++... everyone has their ideal language I suppose. ;)
#2494
Quote from: Brice Manuel
QuoteGLBasic is not the same, it is superior in many ways.
Sorry, but how is this supposed to replace 100s or even 1000s of lines of traditional DATA?

I still miss traditional read/data/restore and that is the ONLY reason that I only use GLBasic for prototyping and not for final projects.
Really?

No program nowadays should have 100s or 1000s of data lines, if you require a similar functionality, then create your own binary file format/editor, write your 'data' to it and read it back into arrays when required. This is the way most modern languages handle large blocks of reusable static data.

GLBasic can easily fill and array from a file or write one back to it...

Code (glbasic) Select
OPENFILE() WRITEBYTE(), WRITEWORD(), WRITEWORD(). WRITEIEEE(), WRITESTR(), WRITELONG(), CLOSEFILE()

OPENFILE(), READBYTE(), READWORD(), READIEEE(), READSTR(), READLINE(), READLONG(), CLOSEFILE()
Quicker to compile, more compact, portable and you don't waste dynamic memory with two copies of the same data (1 in the array and one sitting as a reference).
#2495
Yeah, please do, I go a soft spot for the old interactive fiction...
#2496
Boom... one command...

Code (glbasic) Select
DIMDATA rm$[], 2,0,0,0,0,0,0GLBasic is not the same, it is superior in many ways.

Post any more conversions problem here, Ill try to help...
#2497
GLBasic - en / INLINE calls
2007-Nov-07
An "OpenGL wrapper"? That sounds interesting?
#2498
No sound at all.

Ill send you the code Gernot as its part of my game... thanks for looking at it :)
#2499
GLBasic - en / INLINE calls
2007-Nov-07
Quote from: GernotFrischThese headers are win32 only, IIRC. Do you need mac headers?
Well, my game expands a little on the GL support and uses some other inline C, so I suppose yes, if I want to eventually port it to Mac and other platforms. To be honest I was going to do the win32 version first and then convert to other platforms.

It would be nice if this was part of the official distribution and supported, it really does add a lot to the extendibility of GLBasic. I think its one of those relatively 'hidden' features that no other of the  gamebasics offer that is incredibly powerful once harnessed.

As a request, as part of the cross-compile process could a remark be put on the end of the generated 'c' source line, saying what GLBasic line is being processed...

So for example...

This error...

C:/DOCUME~1/Dad/LOCALS~1/Temp/glbasic/gpc_temp4.cpp:50: error: `GLuints' does not name a type

Would become this error...

C:/DOCUME~1/Dad/LOCALS~1/Temp/glbasic/gpc_temp4.cpp:50: error: `GLuints' does not name a type // From: OpenGL.BAS, Line: 22

This would allow in-line programmers to locate the correct line in the Glbasic source where error was produced,

Just a suggestion.
#2500
I just upgraded from 4.26 to 5.062.

I had to change SPRITE to DRAWSPRITE and FILLRECT to DRAWRECT but nothing more... now my little program has went from 200+fps to <10fps?!?!

Is there something else I should be aware of, I'm using 2D commands on Win32...
#2501
GLBasic - en / INLINE calls
2007-Nov-07
Are these header files still OK to use?

Mac OSX has been added since then and there are no header files in the 'platform' to support it?

Also, do these files need to be updated with each version of GLBasic?
#2502
Had to do a complete uninstall and program folder delete or it coulda been something Gernot did server side, but it works now! :D

Thanks to all that helped!
#2503
Due to illness, this was a long over due major update, I think 4.2 was my last version? Ill maybe do a full uninstall to be sure... thanks for the help any way ;)
#2504
I did that, that's what's causing my problems... I have 5.055, its reporting that the on-line version is 5.062 but when it queries the GLBasic server, its seems to be getting 4.279?!?!
#2505
Every time I start the IDE (5.055) it detects update 5.062 but when it actually tries to download it I get the following message...

Code (glbasic) Select
Current Version:
5.055000
Opening Internet-Connection
Opening Info-File
Reading Update Information
Version:
4.279
No Update available. GLBasic is up to date.
Ende.
?