pouët.net

Go to bottom

Programming questions yet again.

category: code [glöplog]
i wish i could sum up an answer to that question in less than 3 paragraphs :(
added on the 2009-10-28 00:34:59 by Gargaj Gargaj
Please dude, I'd really appreciate it. I really am totally cluless about this. :(
"Header code"?
added on the 2009-10-28 01:00:07 by doomdoom doomdoom
Yeah, told you I was clueless. :P
Well .. questions existing .. without an answer !! .. :D .. throw some fun .. do as you like ..
added on the 2009-10-28 03:18:50 by yumeji yumeji
Glut, gluts easy.
added on the 2009-10-28 06:38:38 by Deus Deus
ok I think you should definitely start with OpenGL and GLUT, if you don't even know the core basics of C++. Before starting with DirectX you should learn C++ first. OpenGL is function-based so its syntax is similar to many other languages.
Just do this:
Code: #include <glut.h> #pragma comment(lib, "opengl32") #pragma comment(lib, "glu32") #pragma comment(lib, "freeglut") void main() { // have fun }


That's all you need to get started with OpenGL.
added on the 2009-10-28 08:58:54 by xTr1m xTr1m
Btw, you should get freeglut here first.
added on the 2009-10-28 09:05:09 by xTr1m xTr1m
Isn't it better to just start with some simple and stupid console applications where you just experiment a bit with C++?

You know, asking some input, doing some calculations, output results, etc.

Some standard C++ assignments: make a bank system where you can add and take money from from several accounts (indexed by name or number, whatever you want.) A leap year calculator is also something everybody needs to code at least once :P

I might be very old school though ;)
added on the 2009-10-28 09:30:38 by Rob Rob
oh , and with d3d you will have to recode everything at each new version release because it never has been retro-compatible.
added on the 2009-10-28 10:01:41 by krabob krabob
And the biggest plus off all with OPENGL you can program in LINUX!!!!....... *chirping sound*
added on the 2009-10-28 10:03:54 by Deus Deus
GLUT is teh cancer. I always hated it. Imo you're better off writing your own shit.
added on the 2009-10-28 10:10:58 by raer raer
I agree with Rare actually, GLUT is a horrid mess whose idea of an exit event is… no wait, it doesn't even have a proper exit event. It just aborts (SIGABRT) the freaking program like that hoping that the system would free the resources. You also have no control on post-main-loop freeing of previously allocated memory. Because there's no main-loop you can control in GLUT it's just that much of a motherfucker. So, if you insist on GLUT get FreeGLUT it has some extensions which work around these, but boy you better start simple like CrossProduct (O. Bierbaard) said.
added on the 2009-10-28 10:20:27 by decipher decipher
glut sucks but nehon helium site has better GL startups for lots of systems
added on the 2009-10-28 11:03:03 by krabob krabob
Forget about glut, better use glfw
added on the 2009-10-28 11:16:40 by Wiz Wiz
Why not use OSDM like the rest of us n00bs?
added on the 2009-10-28 13:06:08 by Zplex Zplex
Decipher: freeglut has glutExitMainLoop();... execution continues then after the call to glutMainLoop(). So what's your point again?
added on the 2009-10-28 14:03:40 by xTr1m xTr1m
as someone else said, if your aim is to start learning C++, doing DX might be a bit overkill.
Now, do you already know any other languages outside of C++. If you know C or Java, it's not the same as if you don't know nothing.
If you start coding in general, you'd better start with something very simple, like Crossproduct said.
However if you really badly want to do demos and gaphics stuff I could suggest you to take a look at the textmode demo template, you could even participate to TMDC :) but it's in C, no ++.
added on the 2009-10-28 18:45:23 by BarZoule BarZoule
Oooh, I'm back on the case again. :(

Bugger this is fucking brain melting. Maybe I should stick writing BASIC. HAHAHAHA....

I'm still trying to a find a way to ease myself into it, but no matter how hard I look I keep losing hope. Visual basic is a complete cow and it's driving me nuts just to do something simple with it. :S

I think I really need to start at the beginning. What's the best programming software/language to start with?
if you just want to mess around, Processing is great.
added on the 2010-07-12 00:20:51 by Gargaj Gargaj
Cheers Gargaj, It's been mentioned a lot of times to me now. I think I'll just hunker into it and get my bearings. :)
feel free to look around at http://gargaj.umlaut.hu/processing/ for source.
added on the 2010-07-12 00:33:27 by Gargaj Gargaj
Cheers again Gargaj, some pretty cool and surprisingly simple sutff. :)

I'll see what I can so with it tomorrow.
Processing.js is also ok if you just want to play around in the browser. I've set up this prototyping page: http://low.fi/~visy/processing_js/proto
added on the 2010-07-12 07:08:24 by visy visy
why do people always want to start at the 'top' first? go for Rob's advice and learn structure and syntax before you dive into graphics of any kind

login

Go to top