Search:

Type: Posts; User: DARKGuy

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    7,105

    Well, I managed to get a hold of the code I've...

    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;...
  2. Replies
    6
    Views
    7,105

    Trying to store lots of values in a vector?

    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...
  3. Porting a shared library from Linux to Windows

    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...
  4. Replies
    14
    Views
    16,010

    Well... now that I think about it, I guess I'm...

    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?
  5. Actually, I solved it! someone in the SDL mailing...

    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...
  6. Alright, I've had my trials and errors and this...

    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...
  7. Replies
    14
    Views
    16,010

    Well, I found something here... ->...

    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...
  8. Yeah, but once I load the texture I free that...

    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...
  9. Reading a pixel from an OpenGL texture (or more than one) with RGBA? (or PNG files)

    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...
  10. Replies
    14
    Views
    16,010

    Wow Bubba, I guess you couldn't have explained it...

    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...
  11. Replies
    14
    Views
    16,010

    Salem: Heh, thanks - one of the first threads...

    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:...
  12. Replies
    14
    Views
    16,010

    [SDL+OpenGL] Constant framerate code?

    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...
  13. Thread: SDL + Newbie

    by DARKGuy
    Replies
    7
    Views
    2,006

    You're not having any loop in your program. Try...

    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...
  14. Replies
    6
    Views
    1,186

    Well, I tried your code... and I'm confused...

    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......
  15. Replies
    6
    Views
    1,186

    COOL! exactly what I was looking for! ^^......

    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...
  16. Replies
    6
    Views
    1,186

    Yeah, the thing is... how? I mean, I know...

    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...
  17. Replies
    6
    Views
    1,186

    Return some kind of array or structure?

    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...
  18. Hey! thanks for the link, you helped tons! :D

    Hey! thanks for the link, you helped tons! :D
  19. gcc/g++ linux-like environment in Windows without Dev-Cpp?

    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...
  20. Reading line by line two files, but with different line positions?

    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...
  21. Replies
    4
    Views
    2,856

    If I would, I wouldn't be asking here, would I? ...

    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...
  22. Replies
    4
    Views
    2,856

    TLINK.EXE not working when in command line.

    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,...
Results 1 to 22 of 22