Search:

Type: Posts; User: GReaper

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: OpenGL

    by GReaper
    Replies
    10
    Views
    419

    One minor thing: You shouldn't do the...

    One minor thing: You shouldn't do the matrix-to-matrix multiplications inside the shader, unless you have direct use for those matrices. The CPU is far better suited for that task. I usually just...
  2. Replies
    4
    Views
    252

    What makes you think a library is faster than...

    What makes you think a library is faster than direct WinAPI calls? Whatever the library you're using, ultimately is has to make the same (and, most of the time, many more) calls to the operating...
  3. Replies
    25
    Views
    554

    You may want to add '\e', it's not exactly...

    You may want to add '\e', it's not exactly standard but it's widely used for ANSI escape sequences.
  4. Thread: OpenGL

    by GReaper
    Replies
    10
    Views
    419

    You're obviously doing something wrong at either...

    You're obviously doing something wrong at either the loading or the rendering phase. Without code, we can just guess.
  5. How does your code even compile? Because It...

    How does your code even compile? Because It shouldn't. You can't pass a 2D array to a function without telling it its dimensions. All but the leftmost dimension must be passed, like this:


    void...
  6. Replies
    9
    Views
    752

    I think you misunderstood the use of...

    I think you misunderstood the use of fgetpos/fsetpos. fpos_t isn't (or rather, may not be) a simple integer. The content of an fpos_t object is not meant to be read/written directly, but only to be...
  7. Replies
    9
    Views
    752

    Oh, and Structure just reminded me that in C, the...

    Oh, and Structure just reminded me that in C, the FILE functions (ftell, fseek, etc), return/take "long" as the file offset. Depending on your OS, "long" may be 32-bit even if your system is 64-bit....
  8. Replies
    9
    Views
    752

    First of all, loading the whole file in RAM is...

    First of all, loading the whole file in RAM is out of the question, you can't assume the user has 10GB memory. Therefore you have to load the file in chunks, and keep unloading and reloading them as...
  9. Thread: Poor RyanC

    by GReaper
    Replies
    7
    Views
    237

    Oh, I finished college, was hoping that I'd get a...

    Oh, I finished college, was hoping that I'd get a decent job in software but no such luck. In my country, the market is saturated (if you don't want to be a code monkey), and unfortunately it took be...
  10. Thread: Poor RyanC

    by GReaper
    Replies
    7
    Views
    237

    Hey, long time no see. How've you been?

    Hey, long time no see. How've you been?
  11. Replies
    10
    Views
    489

    lol, no. Don't believe everything 4chan tells you.

    lol, no. Don't believe everything 4chan tells you.
  12. I'm just going to tell you to get a different...

    I'm just going to tell you to get a different book. "Let us C" is outdated and full of mistakes.

    Now, about your question, CodeBlocks has an option to compile as a static library, at...
  13. Replies
    24
    Views
    770

    In C, you need to declare the prototype of the...

    In C, you need to declare the prototype of the function (or define it altogether) before you use it. The prototype is just the function without the body, like this:


    // Do this before main
    const...
  14. Replies
    4
    Views
    160

    "a" is a static array of "int*" and of size "3"....

    "a" is a static array of "int*" and of size "3".

    A multi-dimensional array in C is just 1-D in memory. For example, the following two arrays are equivalent:


    #define COLUMNS 3
    #define ROWS 4...
  15. The CPU caches are aligned, meaning that if the...

    The CPU caches are aligned, meaning that if the loop is big enough, it's likely that some of it will be outside the current cache-line, making it slower. I don't think that's what's going on here...
  16. I'm not going to watch all those livestreams, but...

    I'm not going to watch all those livestreams, but your highlights video was nice.
  17. Thread: .cvs file

    by GReaper
    Replies
    4
    Views
    324

    A CSV file format is quite simple, after all it...

    A CSV file format is quite simple, after all it stands for "Comma Separated Values". The first row is typically the names of the different columns, and all of the following rows are data. Remember...
  18. Replies
    7
    Views
    337

    Maybe your second program doesn't generate those...

    Maybe your second program doesn't generate those escape codes correctly?
  19. Replies
    7
    Views
    337

    The console was finally updated in Windows 10, to...

    The console was finally updated in Windows 10, to support 8-bit and 24-bit color.

    Oh, about your question, I think that Windows 10 console accepts ANSI escape codes.
  20. But you don't. Assignment goes from right to...

    But you don't. Assignment goes from right to left, here you assign the pointer of matrix A to the pointer of matrix C, and then free/delete C(which is now A). If you wanted to change the 'A' matrix...
  21. C=A; free(C); What do you think these two...

    C=A;
    free(C);


    What do you think these two lines do?
  22. Replies
    12
    Views
    423

    You shouldn't do anything before or after the...

    You shouldn't do anything before or after the include guards. They're there to prevent you from including the file multiple times.
  23. Replies
    1
    Views
    200

    You need to #include "odinutilities.h" inside...

    You need to #include "odinutilities.h" inside "odinutilities.c".
  24. Replies
    1
    Views
    358

    I found this webpage...

    I found this webpage, it may solve your problem.
  25. Replies
    15
    Views
    703

    I'd use redirection instead of messing with...

    I'd use redirection instead of messing with opening/closing files, since it's a simple text file. Also, since it's a stream that shouldn't be expected to handle direct user input, or messages to the...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4