[QUOTE=dagoth_ur;19175753]muffin, may i inquire as to what that program does??[/QUOTE]
I read through the topic again and I still don't see to what else "that" could refer to =/. Sorry. If it's the C code it's just me, I see code and I think code, not a program.
Yeah it's the code from a bot sim, with fancy OpenGL 3.2 graphics. At the moment it renders a blank screen which is kind of annoying and hard to debug since I've written all the maths etc classes myself, and it being OpenGL 3.x there's no immediate mode or fixed function pipeline, so all the shaders are my own as well.
ok, just curious...
[QUOTE=blankthemuffin;19181899]Yeah it's the code from a bot sim, with fancy OpenGL 3.2 graphics. At the moment it renders a blank screen which is kind of annoying and hard to debug since I've written all the maths etc classes myself, and it being OpenGL 3.x there's no immediate mode or fixed function pipeline, so all the shaders are my own as well.[/QUOTE]
That 1.1 stuff is still in there, it is just relegated to the compatibility profile.
The one thing I can't reconcile into the forward-compatible core profile is inserting matrix transformations into display lists. Or the simple absense of display lists for that matter. The way I do text rendering is render a bunch of quads with character glyphs textured onto them, and each character is given the instructions for drawing a quad, and then advancing the modelview matrix to the next character's position. This way, I can just pass the string to glCallLists() and the whole string is rendered, provided I set glListBase properly.
Yeah I know it's still there, I'm deliberately sticking to the 3.2 core profile. Old OpenGL gives me the heeby geebies.
Real men use cat "Code here" > code.cpp; g++ code.cpp -o code
[QUOTE=aschmack;19212184]Real men use cat "Code here" > code.cpp; g++ code.cpp -o code[/QUOTE]
Repeat (n bits) times:
Insert butterflies into your palm.
Open your hands and let the delicate wings flap once.
(Their disturbances ripple outward, changing the flow of the Eddy currents in the upper atmosphere. These cause momentary pockets of higher-pressure air to form which act as lenses that deflect incoming cosmic rays, focusing them to strike the drive platter and flip the desired bit).
I was just gonna say <insert xkcd joke here> ;)
[QUOTE=TheBoff;19215091]I was just gonna say <insert xkcd joke here> ;)[/QUOTE]
Well too easy. Seriously. That's boring. Psh.
[QUOTE=aschmack;19212184]Real men use [b]echo[/b] "Code here" > code.cpp; g++ code.cpp -o code[/QUOTE]
You mean echo right?
[QUOTE=thf;19228703]You mean echo right?[/QUOTE]
No, he's using bash.
[QUOTE=Mattz333;19228938]No, he's using bash.[/QUOTE]
Here files direct stdout and stdin, echo would also work.
(actually, you *should* be using echo - I'm not sure cat ever worked with string literals.)
[QUOTE=HubmaN;19232374]Here files direct stdout and stdin, echo would also work.
(actually, you *should* be using echo - I'm not sure cat ever worked with string literals.)[/QUOTE]
It doesn't.
[code]
cupcakes@localhost ~ $ cat "test"
cat: test: No such file or directory
cupcakes@localhost ~ $ echo "test"
test
[/code]
[editline]11:16AM[/editline]
That's with GNU Coreutils 7.6 on Fedora 12.
[editline]11:20AM[/editline]
From looking at the cat man page, you can do
[code]cat -[/code] to print stdin. You have to use SIGINT to stop it though.
[QUOTE=PvtCupcakes;19232784]From looking at the cat man page, you can do
[code]cat -[/code] to print stdin. You have to use SIGINT to stop it though.[/QUOTE]
Actually, cat reads from stdin by default, so you don't need any arguments at all. And you stop it by typing the EOF character (^D in Linux/Unix, ^Z in Windows) on a line by itself.
Sorry, you need to Log In to post a reply to this thread.