|
Post by davy on Dec 4, 2006 17:00:05 GMT -5
Ok, I've replaces GLUT with SDL in linB4GL which to me seems like a much more logical choice (GLUT was restrictive in terms of event driven-ness). This release also has the commands "LoadTexture" and "LoadMipMapTexture" as well as a handful of OpenGL constants and functions that weren't in the previous release. The code has also been straightened up some. My next goal will be to impliment the mouse_xy and mouse_xyd functions, and hopefully soon the inKey and keyDown functions. This package also has "install.sh" which is a BASH script I added to compile the code for people who cant run the makefile. I also included a couple of textures and a small program to test the "LoadTexture" command. The executable is included in the package, but if you wish to compile this with the Makefile or the install.sh (or manually), you will need the SDL and SDL_image libraries. b4gl-linux.wikispaces.com/
|
|
|
Post by James :) (aka Madcow) on Dec 5, 2006 3:05:31 GMT -5
its written in C and compiles under gtk+ (i think)
i use fedora 6 with glade interface designer.
btw you need to update your whats next page
|
|
|
Post by Pizzasgood on Dec 5, 2006 19:11:13 GMT -5
Cool. I'm playing with it now. One thing that would be nice is if it said the line-number when it encounters an error.
|
|
|
Post by davy on Dec 5, 2006 20:28:38 GMT -5
I've been thinking about that myself, the only downside is that is would have to be done in the actual compiler itself and I've been trying to keep it as clean and authentic as possible. I'll look into it though and see if it can be done without changing much.
|
|
|
Post by Pizzasgood on Dec 5, 2006 23:09:56 GMT -5
Also, why write an editor in the first place? Wouldn't it be easier to take a pre-made editor and modify it slightly? Many of them have options to compile the file they have open, that you can change in the preferences without even touching the editor's source. You can usually set up custom syntax highlighting too. Seems like that would be less work to me, unless you want to make it have an integrated debugger and such like the actual editor.
I guess it wouldn't have the same layout, but that's not very important.
Geany, the editor I use, also supports geometric selecting when you hold control (don't know if that's the actual name for it, but it's like the selecting like in paint rather than word). Also, it can collapse functions and code comments. In the toolbar, there is a field that works like the "find" bar in firefox but not as obtrusive, where you just start typing and it immediately looks for stuff.
However it winds up getting done, those would be nice features, especially the geometric selecting stuff.
|
|
|
Post by James :) (aka Madcow) on Jan 9, 2007 13:55:32 GMT -5
|
|
|
Post by davy on Jan 11, 2007 0:17:03 GMT -5
For simplicity we used SDL for loading images (since it was also used for the window stuff).
There is no sound yet, I might mess around with audiere in linux, but SDL has support for some media types so it might be enough as-is.
|
|