Yeah I do all of my Windows C++ with MinGW. Download CodeBlocks as an IDE (there's even a package on their site that includes MinGW and sets it up to work with CodeBlocks)
Link: [url]http://prdownload.berlios.de/codeblocks/codeblocks-10.05mingw-setup.exe[/url]
Can anybody recommend a good SVN host?
[QUOTE=Loli;36279626]Can anybody recommend a good SVN host?[/QUOTE]
[URL="http://Localhost/"]Here![/URL]
[QUOTE=Topgamer7;36279736][URL="http://Localhost/"]Here![/URL][/QUOTE]
Not helpful. I need to be able to access it around the country.
[QUOTE=Loli;36279626]Can anybody recommend a good SVN host?[/QUOTE]
Google Code perhaps?
[url]http://code.google.com/hosting/createProject[/url]
[editline]10th June 2012[/editline]
[QUOTE=NateDude;36264844]Hello all. I posted here before regarding my difficulties installing Microsoft Visual Studio (with an .exe file not working, and no alternatives functioning) earlier and ended up giving up. That was months ago, but damnit, I want to code. I'm not entirely sure why, but everytime I attempt to install ANY version of Microsoft Visual Studio, a .exe doesn't appear, no matter what, and no alternatives previously suggested have functioned. Does anyone know WHY it wouldn't be installing properly, or at the very least, have an idea? It's frustrating as hell to not be able to get passed the first page of my programming book.[/QUOTE]
Worse case scenario you can always just use a different compiler like Dev-C++ or GCC. Although its very strange that you're having issues installing Visual the executable should be located in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe" for 64-bit OS or "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe" for 32-bit OS if you used the default directory.
[QUOTE=flayne;36281031]Google Code perhaps?
[url]http://code.google.com/hosting/createProject[/url][/QUOTE]
Or Assembla. I think they even offer you one non-public repository for free nowadays.
[SUB][SUB][SUB][SUB][t]http://puu.sh/Aei1[/t]
Well well, CodeBlocks appears to be functioning. Yes, flayne, it [I]is[/I] certainly odd, but if I knew the cause then it wouldn't be a problem would it?
Time to crack open this book an have at it. I'll probably be asking a shitton of questions the coming hours, but hell, I'm excited, so let's have a go!
[editline]11th June 2012[/editline]
[QUOTE=flayne;36281031]Worse case scenario you can always just use a different compiler like Dev-C++ or GCC. Although its very strange that you're having issues installing Visual the executable should be located in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe" for 64-bit OS or "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe" for 32-bit OS if you used the default directory.[/QUOTE]
oh
i'm retarded
but it says
[IMG]http://puu.sh/AeQh[/IMG]
soooo
and this is a big problem because lo and behold, my programming book [B]requires[/B] I use visual studio
motherfucker
help :(
[editline]11th June 2012[/editline]
actually hang on
I think it's working
I'm sorry for clogging up the thread, but I'm still absolutely braindead onto how these things function :v:[/SUB][/SUB][/SUB][/SUB]
[editline]11th June 2012[/editline]
[t]http://puu.sh/Af4u[/t]
Mmph.
Sorry being retarded, guys. I'll try to post ACTUAL QUESTIONS next time.
NateDude, you've reached the same point of why I ditched windows and went to Linux. I was really glad I did so, if you add me on steam I can help you start developing on Linux.
It's an excellent C++ development environment.
[editline]adf[/editline]
Oh, although I didn't get my application working like you did. The only solution was to re-install windows.
It's apparently C++ instead of C#
God fucking damnit :suicide:
[editline]11th June 2012[/editline]
[IMG]http://puu.sh/AfVS[/IMG]
[B];_;[/B]
can anyone who knows how they got it to work add me on steam and help? It won't work mooootherfuuuucker
[B]Edit:[/B] wow apparently puu.sh can't read errors
here we are
[IMG]http://puu.sh/Ahv1[/IMG]
Still, motherFUCK
[highlight]If anyone knows how to fix this it would be really appreciated right now[/highlight]
Does anyone know a good Compression lib under .Net that has good documentation and can store multiple files inside one archive and gives Streams for each compressed file inside the archive? I want to make an asset framework so if I want to add additionial informations for images I won't end up with two file just for 1 sprite.
Does anyone know the best place to learn openGL, i asked in the last thread but no one gave me a response
[QUOTE=MickeyCantor;36289198]Does anyone know the best place to learn openGL, i asked in the last thread but no one gave me a response[/QUOTE]
[url=http://open.gl/]open.gl[/url] (duh)
[url=http://www.opengl.org/wiki/Tutorials]This[/url] [url=http://duriansoftware.com/joe/An-intro-to-modern-OpenGL.-Table-of-Contents.html]question[/url] [url=http://www.swiftless.com/opengltuts/opengl4tuts.html]was[/url] [url=http://en.wikibooks.org/wiki/OpenGL_Programming]asked[/url] [url=http://www.arcsynthesis.org/gltut/]a[/url] [url=http://www.opengl-tutorial.org/]thousand[/url] [url=http://nehe.gamedev.net/tutorial/lessons_01__05/22004/]times[/url]
[QUOTE=vombatus;36289402][url=http://open.gl/]open.gl[/url] (duh)
[url=http://www.opengl.org/wiki/Tutorials]This[/url] [url=http://duriansoftware.com/joe/An-intro-to-modern-OpenGL.-Table-of-Contents.html]question[/url] [url=http://www.swiftless.com/opengltuts/opengl4tuts.html]was[/url] [url=http://en.wikibooks.org/wiki/OpenGL_Programming]asked[/url] [url=http://www.arcsynthesis.org/gltut/]a[/url] [url=http://www.opengl-tutorial.org/]thousand[/url] [url=http://nehe.gamedev.net/tutorial/lessons_01__05/22004/]times[/url][/QUOTE]
not gonna lie, that was clever
Will Objective-C compilers compile unmodified C code? Everyone I ask gives me a different answer.
[QUOTE=halofreak472;36298198]Will Objective-C compilers compile unmodified C code? Everyone I ask gives me a different answer.[/QUOTE]
Who's telling you it won't? They're idiots.
[Quote]Objective-C is a thin layer on top of C, and moreover is a
strict superset of C; it is possible to compile any C program
with an Objective-C compiler, and to freely include C code
within an Objective-C class.[/quote] via Wikipedia
[QUOTE=false prophet;36261976]Those goto's make me cringe.[/QUOTE]
Yep, the project is, well, sort of a mess. That's one of the prime reasons I'm trying to do a little fixing up. ;)
Again, any good resources on converting K&R to ANSI?
[QUOTE=halofreak472;36298198]Will Objective-C compilers compile unmodified C code? Everyone I ask gives me a different answer.[/QUOTE]
At least at some point in time Obj-C compilers were just C compilers with an Obj-C preprocessor on top.
How to rotate object around it's center?
[cpp]
//position.
private float x = 50;
private float y = 100;
private float width = 50;
private float height = 50;
private float rot;
function draw(GL10 gl)
{
gl.glPushMatrix();
gl.glRotatef(rot, 0, 0, 1);
rot+=1;
// Drawing goes here...
gl.glPopMatrix();
}
[/cpp]
This makes it rotate around map origin.
Aren't you just rotating everything around [0, 0, 0] there?
[QUOTE=rute;36299424]How to rotate object around it's center?
[/QUOTE]
Translate the object to 0, 0, 0 (some padding might be needed, not sure), do the rotation and translate back.
-oh wait, snip-
I am using Java.
I have a game that needs to write to and get data from a database (mysql to be precise), I currently have a PHP file on my webserver that acts as a middleman and only does the specific actions required.
The problem I have is that people can still directly find the web page and abuse it by submitting fake data. It's not hard to find it when decompiling the java.
Is there any good ways to secure the connection a bit more?
[QUOTE=AlienCat;36299965]Translate the object to 0, 0, 0 (some padding might be needed, not sure), do the rotation and translate back.[/QUOTE]
This made it disappear.
[cpp]
//position.
private float x = 50;
private float y = 100;
private float width = 50;
private float height = 50;
private float rot;
function draw(GL10 gl)
{
gl.glPushMatrix();
gl.glTranslatef(0, 0, -1); // Translated to 0.
gl.glRotatef(rot, 0, 0, 1);
gl.glTranslatef(x, y, -1); // Translated back.
rot+=1;
// Drawing goes here...
gl.glPopMatrix();
}
[/cpp]
[QUOTE=rute;36300701]This made it disappear.
[cpp]
//position.
private float x = 50;
private float y = 100;
private float width = 50;
private float height = 50;
private float rot;
function draw(GL10 gl)
{
gl.glPushMatrix();
gl.glTranslatef(0, 0, -1); // Translated to 0.
gl.glRotatef(rot, 0, 0, 1);
gl.glTranslatef(x, y, -1); // Translated back.
rot+=1;
// Drawing goes here...
gl.glPopMatrix();
}
[/cpp][/QUOTE]
I may be wrong but I think you need to pass in relative co-ordinates to glTranslatef, the first one you're using doesn't actually do anything because you passed in 0, 0.
[QUOTE=false prophet;36261976]Those goto's make me cringe.[/QUOTE]
I took a look at a few random source file to see if they were even 'bad' gotos, and I didn't see an instance of anything that was more than a minor ideological concern.
[QUOTE=hogofwar;36300014]I am using Java.
I have a game that needs to write to and get data from a database (mysql to be precise), I currently have a PHP file on my webserver that acts as a middleman and only does the specific actions required.
The problem I have is that people can still directly find the web page and abuse it by submitting fake data. It's not hard to find it when decompiling the java.
Is there any good ways to secure the connection a bit more?[/QUOTE]
I would say look into Java Servlets, then stick the required page in the WEB-INF directory, stopping external access to it. But why are you relying on PHP to get some data from the Database when you could do it in Java?
And then, if you are worried about people getting access to your database by looking at the decompiled Java, just create a user on the database with minimal rights required (SELECT only perhaps?) and use that rather than one with all the rights.
[QUOTE=rute;36300701]This made it disappear.
[cpp]
//position.
private float x = 50;
private float y = 100;
private float width = 50;
private float height = 50;
private float rot;
function draw(GL10 gl)
{
gl.glPushMatrix();
gl.glTranslatef(0, 0, -1); // Translated to 0.
gl.glRotatef(rot, 0, 0, 1);
gl.glTranslatef(x, y, -1); // Translated back.
rot+=1;
// Drawing goes here...
gl.glPopMatrix();
}
[/cpp][/QUOTE]
Do this instead:
[cpp]
//position.
private float x = 50;
private float y = 100;
private float width = 50;
private float height = 50;
private float rot;
function draw(GL10 gl)
{
gl.glPushMatrix();
gl.glTranslatef(x, y, 0); // Translated to 0.
gl.glRotatef(rot, 0, 0, 1);
rot+=1;
// Drawing goes here...
gl.glPopMatrix();
}[/cpp]
Make sure your drawing calls are drawing at the origin though.
[QUOTE=MickeyCantor;36289198]Does anyone know the best place to learn openGL, i asked in the last thread but no one gave me a response[/QUOTE]
Get the OpenGL Superbible.
[QUOTE=flayne;36302587]Get the OpenGL Superbible.[/QUOTE]
Actually i have tried to use that, some of the code took reworking to compile on VS2010, they don't have the updated lib's for 2010, and they also restrict you to using their lib "GLTools" and im not a fan of that
[QUOTE=MickeyCantor;36307268]Actually i have tried to use that, some of the code took reworking to compile on VS2010, they don't have the updated lib's for 2010, and they also restrict you to using their lib "GLTools" and im not a fan of that[/QUOTE]
GLTools is only really used for the first few chapters as a way to introduce OpenGL concepts before introducing the API itself (which can seem pretty daunting if you're an absolute beginner). I have the book and I absolutely love it for the last 2/3 of the book which very cleanly explains how to do some of the things that I have a hard time finding solutions to on the internet.
Sorry, you need to Log In to post a reply to this thread.