Another day. Another question.
Alright guys I've successfully programmed a pong game in SDL and would like to now move on to making a pacman or something similar, but I have a question as to how to...
Type: Posts; User: jamort
Another day. Another question.
Alright guys I've successfully programmed a pong game in SDL and would like to now move on to making a pacman or something similar, but I have a question as to how to...
possibly im not sure. I decided to move on from this and I did it in another project and everything works fine
okay so this is why I hate/love posting things on forums.. normally I find my mistakes right after wards.. found out the mistake here was that in fact the asterik was in the wrong place. And also,...
okay thanks for the reply. I believe it's where I'm putting the *.
so I have Image.h and Image.cpp, I already have my draw functions for rendering a background image, and a sprite. Now I'm trying...
I've attempted doing this many way but no matter what i get errors. I'd like to do it with a .h file and a corresponding .cpp file for functions.. Any help is appreciated.
Thanks.
Also I felt like...
Okay so ive been through lazy foos tutorial.. now im attempting to make a pong game, but now SDL_flip is giving me a problem.. when I comment it out my code runs fine.. I get a return 3.
...
yeah.. would you like to explain your method to try and convert the roman numerals to numbers.. I think I would do something like have a temp value that scored the current letter.. then checked to...
looks like you have nothing in your code to handle if C comes first.. I see an addition for if it comes after say M.. also post your whole code so its possible for us to run it an tinker with it.
...
The projection matrix was the problem.. I feel dumb because I tried to avoid the reshape function for this but as I found out it was definately needed. Thanks for the help guys.
I went with a different tutorial series, because of it using glut to create the window instead of the WINAPI. the link to the tutorial Swiftless OpenGL Tutorials | Swiftless Tutorials I created this...
The problem still persists. Its just a blank red screen. I'm wondering if its the xyz positions? I'm just a newb at this graphics stuff though
Hi, so im new to graphics programming and decided to try openGL (I'm planning on making a 2D game in it at first, possibly pacman). And I'm having trouble getting it to draw shapes on the screen.
...
Okay so all I have to do is add in what to link where i have the .h and .a file in the include and lib folders of the compiler.. correct? Then I go to link libraries under linker settings, and there...
Okay so I followed a tutorial to get this code to try glut...
#include<gl\glut.h>//This header file contains all the commands for the OpenGL Utility Toolkit
//function to initialize GLUT...
I've been wanting to use OpenGl or such programs for a while but whenever I try to install any external library some how I don't do something right and it never works. I know you should copy and...
I 100% agree
No.. I would give him some code implementing enums.. even if its not exactly "correct"... in the end you know you will get a grade.
yeah.. um im a little confused as why they would instruct to use enums for something like this... they could have came up with a lot better challenge, and i used switch to handle the enum because it...
thats simple... all you have to do is enum all of the names.. then do a switch case with the numbers for printing so ill implement four names....
#include <iostream>
#include <string>
#include...
Ummm its very dependent on what you want to do... for example.. if you want to display certain text depending on the value of an enum youwould need to handle it in a switch case...
so you would put...
an http session, and can you point us in the direction of the "documentation"
Well when you press F9 in code::blocks it should run and show you the exe anyway but other than that the executable should be in the same folder path as the c++ file so find the source file and the...
okay so... I get what you're saying about the swaps, good point. The for loop I eventually took out reading back through the code I found it. and well here's my code so far that actually allows you...
Basically vectors are dynamic arrays which mean you can add or delete contents. With arrays you have to manage memory, vectors does this for you... Um basically you want to use vectors when you are...
So after about and hour or two of a headache with errors I finally got this things figured a little better (I hope)...
#include <vector>
#include <iostream>
#include <time.h>
#define...