Vector, that's what I was looking for. Thanks very much
Type: Posts; User: Comrade_Yeti
Vector, that's what I was looking for. Thanks very much
Thanks. I think I understand pointers more now... Specifically referencing and such. Curious, again, if you passed an array to a pointer declared in a function, and then called a member of an array...
Oh, ok, I see. When you dereference a pointer, you get the data at the address held by the pointer (done by using *). When you use &, you directly refer to the address, which is stored in the...
P.S. Thanks to everyone for the replies, despite my utter blond-ness. '^.^
TO 7stud:
Ahh... I always get * and & confused. If I had passed a pointer, and wanted to refer to the data at the address held by the pointer, I would use &, right? Oh, and just removing the...
Now I'm confused... I thought that you needed that to point to the data held by the variable passed to it...? Sorry, I natively program on Pascal and BASIC, kinda' new to C++. Thanks, by the way....
It seems like the definition of modular programming is and issue of semantics. Honestly, all I can say is that breaking your code into smaller, psuedo-independent chunks is definitly necessary for a...
Thanks for the reply. I was wondering if it might have anything do with something preceding it in the code, but everything else seems to work fine (I took out the prior functions, one by one, to see...
I'm trying to add two variables (both strings) in Dev-C++, and it tells me that there's no matching operator+. Every tutorial and example I've found on the net says that the syntax I'm using is just...
Ohhh, I totally overlooked that... :P. I see what you're saying. I'll try google or something. Thanks for the replies.
I meant, "turn the offset of the camera, in pixels, into tile units (i.e. 20x20 squares, in my case)..."
I don't understand your first statement at all... I thought it would run until x was equal to Offset_X plus the screen dimension at hand, divided by the width of the boards tiles.
As for the...
If you typedef an embeded vector (vector<vector<int>>, if that's even proper syntax), how do you use it afterward? Like,
typedef vector<vector<int>> MapVect;
MapVect Board(x,y);
...
I'm not sure what that gap is from... ?
Ok... I applied the same method noted above (the for loops), modified slightly, to an SDL blitting operation. When I ran it, it displayed nothing, and stopped responding. So I added a little printf...
Well... I was using a For loop to redraw it every frame, because it's suppose to move when the mouse get's near the edge of the screen (like scrolling). But it froze when I tried it my way, so I...
If one were to make a grid on the screen by using the SGE LineAlpha function, and redraw it every frame, that would be really slow wouldn't it?
I revamped the code (a lot), and now it opens and loads the model (and texture), but won't display anything or recognize key strokes. It's only 171 lines now though.
// Abiotica- Zero G
//...
I added that and it still does the same thing... :(. I'll post it over at Irrlicht too, I suppose. Thanks for the replies (again, :P).
Oh, and every other time I do it (which greatly confuses me), it tells me I have an Access Violation (Segmentation Fault). But only every other time...
Also, in the video mode choice function, it...
Thanks for the replies. I didn't have the graphics in the right folder, but when I put them there (and double checked the paths) it still does the same thing. When I debugged it, it told me it can't...
I have about 223 lines of code that, when compiled, produce no errors, but when ran, freezes for a moment, and then windows asks me if I want to send the error (that it won't identify) to their help...
Thanks... Feel kinda foolish (seeing as you just googled it and all), :P.
I understand how palette manipulation in SDL is done (through the SDL_Color structure and all), but I have one problem: I want to load a 256 color palette ( preferably in .pal format, though I could...
Elad, do you mean instead of using static arrays as member variables, use vectors (or lists or whatever) as the member variables, and then have a plain int member variable to denote how many...