BASIC

Author Topic: Two questions...  (Read 2700 times)

Offline tictac

  • Mc. Print
  • *
  • Posts: 21
    • View Profile
    • newLisp Italian blog!
Two questions...
« on: 2008-Jul-13 »
Day by day I'm discovering this great product.
Now I found two "small" problems:

1) How can I include a source code inside another one (something like "include" or "import")?
2) Can I set screen resolution, Fullscreen, more than 1024x768?
3) Does GLBasic support video other than 4:3 (e.g.: 1024x600? 1440x900? 1680x1050?)

Thank you!

-Alessandro

Sebastian

  • Guest
Re: Two questions...
« Reply #1 on: 2008-Jul-13 »
1. there is no command for that. You do that via the IDE. It's all handeled automatically
2. Yes (I'm running 1440x900)
3. Yes (see 2.)

Offline PeeJay

  • Mr. Polyvector
  • ***
  • Posts: 244
    • View Profile
    • PeeJays Remakes
Re: Two questions...
« Reply #2 on: 2008-Jul-13 »
The only thing to remember, if you are using a widescreen resolution, then only those with widescreen monitors will be able to use it.
www.peejays-remakes.co.uk
For games, remakes, and GL Basic Tutorials
Artificial Intelligence is no match for Natural Stupidity

Sebastian

  • Guest
Re: Two questions...
« Reply #3 on: 2008-Jul-13 »
You can reset the resolution wih SetScreen so that shouldn't be a big problem.

Offline tictac

  • Mc. Print
  • *
  • Posts: 21
    • View Profile
    • newLisp Italian blog!
Re: Two questions...
« Reply #4 on: 2008-Jul-13 »
Thank you! I tried to setup a higher resolution via IDe but it seems it does not work (I will try with the command).
About include: "handled automatically via IDE"? How? Is there any interface to setup include files? Do I need to put my libraries (to be included) in a specific place?

Thank you!
-Alessandro

Sebastian

  • Guest
Re: Two questions...
« Reply #5 on: 2008-Jul-14 »
I currently don't have access to my GLBasic but there has to be a "Add source file" menu point somewhere. I'm already used to it and use it automatically so it's hard to remember where it is exactly...

Offline PeeJay

  • Mr. Polyvector
  • ***
  • Posts: 244
    • View Profile
    • PeeJays Remakes
Re: Two questions...
« Reply #6 on: 2008-Jul-14 »
Load up the gbas file you want adding to your project, right click, and select "Insert file into project", and voila! :)
www.peejays-remakes.co.uk
For games, remakes, and GL Basic Tutorials
Artificial Intelligence is no match for Natural Stupidity

Offline tictac

  • Mc. Print
  • *
  • Posts: 21
    • View Profile
    • newLisp Italian blog!
Re: Two questions...
« Reply #7 on: 2008-Jul-14 »
So I only need to add my file/library to the project, and it will be avaiable to the other files! Cool!

Thank you!

-Alessandro

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1635
  • Particle Hawk
    • View Profile
Re: Two questions...
« Reply #8 on: 2008-Jul-31 »
You can also import and export declarations via functions under the tools tab in glbasic.
Very handy for keeping the compile time down, as opposed to inserting your entire library.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)