Well, I managed to get a hold of the code I've been using on my laptop, here's a snippet (it's way too damn long):
struct usrC
{
string name;
int byCaps;
int byFlood;
int byLength;...
Type: Posts; User: DARKGuy
Well, I managed to get a hold of the code I've been using on my laptop, here's a snippet (it's way too damn long):
struct usrC
{
string name;
int byCaps;
int byFlood;
int byLength;...
Hey guys :)
I need to store lots of values in a dynamic-sized array, so I opted for vectors. I've had some problems in the past trying to do something similar so I'm asking for someone to please...
Hey guys! :D
First of all, thanks a lot for helping me through all this time, you all rock! :D :D
Now though, I'm trying to port my game library from Linux to Windows but it's been a small...
Well... now that I think about it, I guess I'm gonna give the TimeDelta framerate thing a try, however I learn better with code - is OnionKnight's code a pseudo-code of a TimeDelta implementation?
Actually, I solved it! someone in the SDL mailing list pointed out that I was dividing bpp in GetPixel() by 8. That's what the SDL wiki tells to do though, since the bpp I was getting were 8, 16, 32...
Alright, I've had my trials and errors and this is what I've came up with:
It looks like I can't read the pixels after freeing them, so I'm left with an SDL_Surface structure which contains a...
Well, I found something here... -> http://math.smsu.edu/~erik/articles/timer/timer.html
Also, I find it confusing to use a timedelta... the normal thing would be to work with frames! :/ ... or so...
Yeah, but once I load the texture I free that memory, meaning I don't have any SDL info available but just the OpenGL texture. Else I would read the SDL image info, of course :P.
An idea would...
Hello guys, it's me again XD sorry for being an annoyance :P
I'm trying to do pixel-perfect collision in OpenGL+SDL under Linux. Bounding box collision is working and I have the formulas to get...
Wow Bubba, I guess you couldn't have explained it better! what I'm trying to do is to skip frames in slow machines and cap the framerate in fast machines - so both get the same framerate and the game...
Salem: Heh, thanks - one of the first threads found were helpful though it the code didn't work as I expected :(
pronecracker: are those SDL functions? I've never heard of them...
Rune Hunter:...
Hey people :)
I've been making a game in SDL and OpenGL but I'm having some problems with the framerate... is there a way I can make the game run at, for example, 30fps on any machine? (smoothly...
You're not having any loop in your program. Try something like:
while (1)
{
// do the render stuff here...
SDL_Delay(1); // you don't need 100000. With a small delay such as...
Well, I tried your code... and I'm confused because if I try to modify the value inside the function (for example, to change the value in BMPheader.width ) it says it's not declared in that ambit......
COOL! exactly what I was looking for! ^^... thanks hehe :D I'm going to work right now but when I'm back home I'll try that... I didn't know you could place an "identifier" to the class right after...
Yeah, the thing is... how? I mean, I know theories but I don't know how to do it code-wise :/ that was my idea too, using a class, but I dunno how would it apply in my case, code-wise.
Thanks for...
Hey people :)
I'm making a function to load an opengl texture, but instead of returning the texture ID as GLuint, I want it to return also other values such as width, height, etc. So I can access...
Hey! thanks for the link, you helped tons! :D
Greetings!
I've been advancing a lot with my project now :) but there's something that's been bugging me a lot... I don't want to keep dual-booting between OSes just to make some tries, and...
hey ^^
Well, I got a hold of Borland C++ Builder 6 trial, so it's all good now I guess. However my friend still wants me to use TurboC++ 3.01 for DOS, so if you know how to make TLINK.EXE work...
If I would, I wouldn't be asking here, would I?
Anyways. Salem, that's useful actually :) I don't think I have the manual around (unless it comes with the installation files?) because my friend...
Greetings :)
A friend needs me to make a program for him using Turbo C++ 3.01... well, if I try to compile -some- projects under the DOS IDE it works, but man... a DOS IDE... you get what I mean,...