Search found 8 matches
- Wed May 30, 2012 10:21 pm
- Forum: General programming discussion
- Topic: Experienced application developer with zero linux knowledge.
- Replies: 3
- Views: 2556
Re: Experienced application developer with zero linux knowle
Ex Sgi user, also with published titles to my name ;) Linux isn't *that* different to irix really - nothing's really changed in 20 years! Totally obvious programming points: use g++ instead of cc; the 'ar' command makes libs; use -shared to make dso's; get reacquainted with makefiles; and remember t...
- Wed May 30, 2012 2:33 pm
- Forum: C/C++
- Topic: A couple of queries...
- Replies: 9
- Views: 5100
Re: A couple of queries...
Not sure how it will handle larger multiple-C-file projects yet, but I'll enjoy playing... I'd point out that if you want to compile C++ code, you need to use g++ instead of gcc. (I usually compile C files as C++, since it's a little less restrictive in the syntax allowed). With gcc, using multiple...
- Thu May 24, 2012 10:51 pm
- Forum: C/C++
- Topic: GLSL weirdness / possible bug?
- Replies: 20
- Views: 8499
Re: GLSL weirdness / possible bug?
Guys!
Why are you blaming the DST params (the framebuffer) for defects visible in the SRC params (the vertex attributes)?
Why are you blaming the DST params (the framebuffer) for defects visible in the SRC params (the vertex attributes)?
- Thu May 24, 2012 3:09 pm
- Forum: Staffroom, classroom and projects
- Topic: Lego RCX/NXT robotic programming with Pi.
- Replies: 33
- Views: 45647
Re: Lego RCX/NXT robotic programming with Pi.
Ok, so I'm going to add another post to clear up a bit of confusion present in this thread. In a nutshell, there are 3 ways to use the Pi with the lego NXT. They are: 1. You can use the Pi to issue commands to the NXT brick, it's sensors, and the motors, via the use of a bluetooth connection. (this ...
- Thu May 24, 2012 2:57 pm
- Forum: Staffroom, classroom and projects
- Topic: Lego RCX/NXT robotic programming with Pi.
- Replies: 33
- Views: 45647
Re: Lego RCX/NXT robotic programming with Pi.
I've actually rewritten Anders mindstorms NXT bluetooth C++ library (and fixed a load of bugs, updated the code to include the newer colour sensor, added xbox 360 joypad support, and added the ability to write 24bit images). Everything works without a hitch on linux, and so it should be *relatively*...
- Thu May 24, 2012 6:20 am
- Forum: C/C++
- Topic: GLSL weirdness / possible bug?
- Replies: 20
- Views: 8499
Re: GLSL weirdness / possible bug?
Moreover, with that kind of configuration it should only ever be possible to have fully opaque primitives. Transparency is usually done with the SRC_ALPHA, ONE_MINUS_SRC_ALPHA, where SRC is the primative colour. The framebuffer lacking alpha is only a problem if you use DST_ALPHA/DST_COLOR in your ...
- Wed May 23, 2012 4:36 pm
- Forum: General programming discussion
- Topic: version control software?
- Replies: 17
- Views: 9911
Re: version control software?
Another vote for GIT. SVN, CVS and BZR are perfectly ok, until such time as you hit a problem. At that point, you'll be very glad you were using GIT! My 2 cents....
Tortoise is Win32 only.Whichever you end up using, grab the Tortoise front-end for them:
- Wed May 23, 2012 4:03 pm
- Forum: C/C++
- Topic: My First Amazing Incredible C program
- Replies: 3
- Views: 4491
Re: My First Amazing Incredible C program
fprinting to stdout is syntactical sugar for printf. Printing program output to the error log (stderr) however, is a little bit of a no no. As for printing to a file, it's not that difficult.... #include <stdio.h> int main(int argc, char* argv[]) { FILE* fp = fopen("output.txt", "w&qu...