Programming questions yet again.
category: code [glöplog]
i wish i could sum up an answer to that question in less than 3 paragraphs :(
Please dude, I'd really appreciate it. I really am totally cluless about this. :(
"Header code"?
Yeah, told you I was clueless. :P
Well .. questions existing .. without an answer !! .. :D .. throw some fun .. do as you like ..
Glut, gluts easy.
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:
That's all you need to get started with OpenGL.
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.
Btw, you should get freeglut here first.
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 ;)
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 ;)
oh , and with d3d you will have to recode everything at each new version release because it never has been retro-compatible.
And the biggest plus off all with OPENGL you can program in LINUX!!!!....... *chirping sound*
GLUT is teh cancer. I always hated it. Imo you're better off writing your own shit.
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.
glut sucks but nehon helium site has better GL startups for lots of systems
Forget about glut, better use glfw
Why not use OSDM like the rest of us n00bs?
Decipher: freeglut has glutExitMainLoop();... execution continues then after the call to glutMainLoop(). So what's your point again?
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 ++.
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 ++.
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?
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.
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.
Cheers again Gargaj, some pretty cool and surprisingly simple sutff. :)
I'll see what I can so with it tomorrow.
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
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