|
Post by matthew on Nov 27, 2006 15:11:56 GMT -5
Great stuff. ;D I've just tried it in Mandriva and it works.
|
|
|
Post by davy on Nov 27, 2006 15:17:34 GMT -5
The perspective isn't set up yet, and you dont have any options for the window res, its just 640x480. We'll get to that, but for now, you can define the perspective manually with...
glMatrixMode(GL_PROJECTION) gluPerspective(45, 1.3, .1, 100) glMatrixMode(GL_MODELVIEW) glEnable(GL_DEPTH_TEST)
I'll put the perspective in on the next one, and then it will start out like basic4gl does.
|
|
|
Post by James :) (aka Madcow) on Nov 27, 2006 16:15:17 GMT -5
|
|
|
Post by James :) (aka Madcow) on Nov 27, 2006 16:22:03 GMT -5
i'll have a stab at that gtk thingy
|
|
|
Post by Supermonkey on Nov 27, 2006 18:56:06 GMT -5
I'm going to start working on getting the File IO and timer commands working tomorrow, then I'll try looking at some of the networking code, I don't really know how much is windows only but I'm guessing a rather large amount.
|
|
|
Post by Pizzasgood on Nov 27, 2006 19:58:04 GMT -5
Sweet! Someday when I get a break from homework I'll get that stuff installed and help test things. (I was re-partitioning my computer before, and haven't set everything back up. I'm also trying to fit time to work on my custom version of Puppy Linux, along with homework (should be working on my essay right now, but I'm a big procrastinator)). When I get the time and have it working right, I'll package it up for Puppy Linux. You guys might be on the verge of a traffic increase around here.
|
|
|
Post by davy on Nov 27, 2006 20:36:03 GMT -5
Yeah, I've tried a few BASIC languages for linux to see what was out there and, well, they sucked. I haven't found anything as simple/small and easy to use as Basic4GL. But now linux is about to have it's own Basic4GL which is pretty sweet.
|
|
|
Post by Pizzasgood on Nov 27, 2006 23:13:34 GMT -5
I haven't looked at basics much since switching to linux. I've mostly just used shell scripting, because that's what was in front of me . I edited and wrote a couple C programs, but only when I couldn't do something easily from the shell. I did play with OpenGL a bit in C++ while I was in Windows, and B4GL was definitely nicer. This is good timing too, because I was planning to dig out Basic4GL over Christmas Break and do some experimenting. Now I might not have to reboot into Windows. Plus, this means we should be able to write cross-platform B4GL programs. That part is just now hitting me. Yep. Now I'm even more motivated to finish up my other projects. With that, I sally forth back into the web of entanglement that is my currently six going on seven page essay on "sense" in Pride and Prejudice. Hmm... we don't have a "bang head against wall" emoticon....
|
|
|
Post by davy on Nov 28, 2006 0:30:27 GMT -5
I agree, we need a good "bang head against wall" emoticon, I mean, this IS a programming community...(plus, you never know when one of us will get stuck with a crappy english assignment) And yeah, that also dawned on me, Basic4GL programs will be portable (assuming the user has Basic4GL). And since this Basic4GL uses GLUT instead of windows, it's portible as well (the source code, that is).
|
|
|
Post by James :) (aka Madcow) on Nov 28, 2006 10:32:59 GMT -5
to supermonkey : the network code i found is mostly linux because the person who wrote it favours it . ;D Update: the gtk thing didn't work out. so for know i'm writing a commad line operated editor. like the traditional basic used to use. so far new , help , list and edit work. run just prints "run code here" cause i need davy or supermonkey to make it work with the compiler. btw this is a good site for c++ or c www.cplusplus.com/doc/tutorial/variables.html
|
|
|
Post by davy on Nov 28, 2006 18:52:08 GMT -5
Well, making it run the compiler is pretty easy, you just need to pass...
"./linB4GL program.gb"
to the console. Obviously program.gb is the basic4gl program being ran. Personally, I think a python script would make a good editor because it's easily modified and python is small and portable. Python doesn't get compiled either, so the users can modify it to suite there needs.
But just the same, a good C++ editor would do too. The neat thing is that anyone can make their own editor now because it isn't attatched to the program.
|
|
|
Post by James :) (aka Madcow) on Nov 29, 2006 3:10:01 GMT -5
can you show me the code becuase the turtorial that i used didn't show me how.
p.s i'll could try python but i would need to learn a bit first
|
|
|
Post by davy on Nov 29, 2006 3:41:58 GMT -5
What are you having problems with? I'm not up-to-par with my python, but you can make a simple textarea like this...
from Tkinter import * root = Tk() root.title('linB4GL') button = Button(root, text='Run!') text = Text(root, height=40, width=100) scroll = Scrollbar(root, command=text.yview) text.configure(yscrollcommand=scroll.set, font=('Verdana', 9, 'bold')) button.pack(side=TOP) text.pack(side=LEFT) scroll.pack(side=RIGHT, fill=Y) root.mainloop()
Then you would just have to add the file in/out part and make the run button save a temporary file, and then call it from the terminal using "./linB4GL temp.gb"
I dont remember how to send a command to the terminal, but it isn't difficult in either python or c++. I'm only suggesting python because it is portible and easily changable so people can write their own skins/modifications instead of being stuck with whatever is out.
As far as syntax highlighting goes... No idea. I'm sure someone out there can help though. As for me, I've gotten very used to compiling with just a text editor and the command line, so the editor isn't very high up on my priority list. (Most linux programmers are command-line compilers)
|
|
|
Post by James :) (aka Madcow) on Dec 4, 2006 13:10:08 GMT -5
i made a basic interface but i'm having troubels compiling it. what dose it mean about typing stuff (e.g type "cd").
|
|
|
Post by davy on Dec 4, 2006 14:26:34 GMT -5
You should be more specific. CD is a linux terminal command, it Changes the Directory you are in. What are you compiling and why do you need to type the cd command? Also, what language are you compiling in?
Another point, linB4GL right now is just an interpreter. It simply runs a basic4gl program. To run a program, from the terminal you must enter "./linB4GL myProgram.gb" where "myProgram.gb" is replaced by some program you are compiling.
The reason you dont need to compile the editor on top of the actual executable for linB4GL is because all you really need to do is make the program send a message to the kernal or an active terminal. That message is the one that I just explained.
Now, for an editor with the "go" button... I would have it save the program to a temp file when they hit "go" and then run the temp file, that way you dont have to manually feed commands to the linB4GL executable.
Another advantage to doing things this way is that there isn't just one editor. As I said, alot of linux programmers will be using the command line, and will not want an editor attatched. Plus, anyone can write their own editor this way too!
|
|