Search:

Type: Posts; User: ThLstN

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds; generated 41 minute(s) ago.

  1. Replies
    20
    Views
    2,735

    SDL is not hard at all, even for beginners, if...

    SDL is not hard at all, even for beginners, if you start learning it, you'll realize how easy it is.
    I recommend to look at this sites, because they have very good tutorials about SDL for beginners....
  2. Replies
    20
    Views
    2,735

    SDL is not hard at all, even for beginners, if...

    SDL is not hard at all, even for beginners, if you start learning it, you'll realize how easy it is.
    I recommend to look at this sites, because they have very good tutorials about SDL for beginners....
  3. Replies
    1
    Views
    7,248

    How to build a flexible Game Menu..

    Hello guys! It's been a while that I have been programming with SDL, creating games and such, and all that time, I've been thinking how to create a flexible game menu, that is consistent, and has sub...
  4. Replies
    10
    Views
    3,448

    void PutPixel(SDL_Surface *Surf_Dest, int X, int...

    void PutPixel(SDL_Surface *Surf_Dest, int X, int Y, Uint32 Pixel)
    {
    if(Surf_Dest == NULL || X < 0 || X >= Surf_Dest->w || Y < 0 || Y >= Surf_Dest->h)
    return;

    int bpp = Surf_Dest -> format...
  5. Replies
    5
    Views
    1,837

    You can try this where 20 in %20 is the length of...

    You can try this where 20 in %20 is the length of string you need to read.
    But this isn't safe so you should probably try an another method.

    fscanf(file,"%20s %lf", struct_ptr[1].name,...
  6. Replies
    7
    Views
    14,411

    Well, a simple bouncing algorithm is actually...

    Well, a simple bouncing algorithm is actually very easy.

    First, declare two variables for the x and y velocity of the ball, and multiply it by -1 each time the ball hits the edge of the screen.
    ...
  7. Replies
    3
    Views
    1,916

    Use command line arguments in your main function...

    Use command line arguments in your main function like this.

    int main(int argc, char *argv[])

    Then check of there is a parameter specified.
  8. Replies
    6
    Views
    1,807

    Yeah, you're right, I have been programming only...

    Yeah, you're right, I have been programming only for about one year and each time I found the solution for a specific problem, it will be very easy for almost all similar problems.

    So first, I...
  9. Replies
    6
    Views
    1,807

    Now, that sounds difficult, how do I get started?...

    Now, that sounds difficult, how do I get started?
    Making this class a base class from std::streambuf first?

    matsp: I'll remember that :D
  10. Replies
    6
    Views
    1,807

    Create a ostringstream like class.

    I'm creating a class to handle timed message dialogues on screen for my game, it all went well, but what I'm trying to achieve is something like a std::ostringstream object class, but with another...
  11. Oh thanks, I didn't know that! Edit: Now it's...

    Oh thanks, I didn't know that!
    Edit: Now it's working :D
  12. Oh is it looking in C: ? Sorry, I didn't know...

    Oh is it looking in C: ?
    Sorry, I didn't know that, I thought it was a relative path.
    So, how can I use a relative path?
  13. Well, I got seven lines. I have a .cpp file in...

    Well, I got seven lines.
    I have a .cpp file in my project folder of course.
    If I put a .cpp file in D: and changed Extension[0] to "D:\\*.cpp", then it works.
    I really don't know what's wrong with...
  14. Well, not many only about 6 .cpp files, but if I...

    Well, not many only about 6 .cpp files, but if I change Extension[0] to \\*.cpp, it still returns an INVALID_HANDLE_VALUE.
  15. FindFirstFile() Always Returns INVALID_HANDLE_VALUE

    I'm trying to create a console application that reads all files in a directory, and count the total line count in it with FindFirstFile() but it always returns an INVALID_HANDLE_VALUE.
    Can someone...
  16. OpenGL Textures Disappear after SDL_VIDEORESIZE

    If I use SDL_RESIZABLE together with OpenGL, after resizing the window, all my textures would disappear.
    Is that normal? And if so, should I reload it again after resizing?
  17. Replies
    132
    Views
    731,576

    Sticky: Operating system: XP SP3 Compiler: MSVC 2008...

    Operating system: XP SP3
    Compiler: MSVC 2008 Express
    Graphics Library: SDL 1.2
    Other Libraries: SDL_ttf, SDL_image
    Description: Simple Memory Game Where You Can Make Your Own Card set.


    I...
  18. Replies
    8
    Views
    12,275

    An array is not a "const char *" pointer to it's...

    An array is not a "const char *" pointer to it's first element, only it's address is const, but the data that resides in that location is not const.
  19. Replies
    66
    Views
    6,254

    Maybe this would give you an idea: ...

    Maybe this would give you an idea:



    #include <string>
    #include <ctime>
    #include <iostream>

    int main(int argc, char *argv[])
    {
  20. Thread: OpenGL and SDL

    by ThLstN
    Replies
    2
    Views
    1,706

    Ok. Thanks for your reply! GLFW looks...

    Ok. Thanks for your reply!

    GLFW looks interesting. I might be trying it someday.
  21. Thread: OpenGL and SDL

    by ThLstN
    Replies
    2
    Views
    1,706

    OpenGL and SDL

    I just want to ask, if it's possible to use all OpenGL features with SDL only, so I don't need to setup all openGL things like OpenGL drawing context in Win32 API.

    Will I be able to use all...
  22. Replies
    5
    Views
    1,124

    it's equal as false? 0 : 1

    it's equal as




    false? 0 : 1
  23. Replies
    2
    Views
    1,055

    #include "cGameInstance.h" cGameInstance...

    #include "cGameInstance.h"

    cGameInstance cGameInstance::a_game;

    cGameInstance::cGameInstance()
    {
    Surf_Card = NULL;
    Surf_Background = NULL;
    Surf_Blank = NULL;
    Surf_Border ...
  24. Replies
    2
    Views
    1,055

    Is it a bug? Or is it my fault?

    In Code::Blocks, somewhere in my code, I declared an ostringstream object.
    But that gives me an segmentation error.

    Even only declaring it would rise up an error.

    Is this a bug in Code::Blocks...
  25. Replies
    4
    Views
    9,853

    Nevermind, fixed by removing -O2, missed that...

    Nevermind, fixed by removing -O2, missed that option.

    Thx guys!
Results 1 to 25 of 66
Page 1 of 3 1 2 3