Search:

Type: Posts; User: chomper

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,189

    I've just tried your search phrase in Google and...

    I've just tried your search phrase in Google and I've found this page:

    http://pages.infinit.net/jstlouis/3dbhole/hidden_surface_removal.html

    This is exactly what I was looking for!

    Thank...
  2. Thread: Question

    by chomper
    Replies
    5
    Views
    979

    atoi() returns 0 if the string cannot be...

    atoi() returns 0 if the string cannot be converted:

    eg. atoi("test") returns 0

    however

    atoi("0") returns 0 too, of course - here, the string was correctly converted to 0
  3. Replies
    2
    Views
    3,189

    Z-buffer problem (?)

    I have implemented Z-buffer algorithm but sometimes I get weird results, ie visibility is not solved correctly. My Z-buffer algorithm works like that:

    -------Step 0:
    Initialize Z-buffer with...
  4. Thread: queue

    by chomper
    Replies
    4
    Views
    1,041

    1) Counter solution The best one. All you need...

    1) Counter solution

    The best one. All you need is an integer variable. Whenever you add an item to your queue, you need to increment it by one and vice versa: whenever you remove an item, you need...
  5. Replies
    15
    Views
    1,852

    In C++, these two structures are actually same: ...

    In C++, these two structures are actually same:

    1: struct {
    private:
    int a;
    public:
    int Func() {return a;}
    };

    2: class {
  6. Replies
    15
    Views
    1,852

    class can and it definitely *should* have...

    class can and it definitely *should* have methods. i consider the use of struct with methods or class w/o methods to be really weird. what do you think?
  7. Replies
    3
    Views
    1,938

    what i actually did :)

    what i actually did :)
  8. Replies
    3
    Views
    1,938

    Sorry but I guess you're wrong in some things!...

    Sorry but I guess you're wrong in some things! First, the ellipse function actually fills the inside of an ellipse with background colour. That is why I want to use Arc function. Second thing is,...
  9. Replies
    3
    Views
    1,938

    Drawing circles

    I need your help because I often experience off-by one errors when using graphic functions. I would like to write a Circle function, its prototype should look like this: void Circle(HDC hdc,double...
  10. Replies
    2
    Views
    1,436

    Enabling menu items

    When I enable previously disabled/grayed menu item (I mean an item in the MAIN MENU BAR only) by calling EnableMenuItem, it will be still grayed, though enabled! Windows won't PAINT IT BLACK! I can...
  11. Replies
    9
    Views
    2,722

    VB? Man, do you know how SLOOOOW its file i/o is?...

    VB? Man, do you know how SLOOOOW its file i/o is? Or you have never opened a file in a binary mode? Go and try it! It'll surely remind you of 8-bit computers like C64 and their file i/o! C/C++ FOPEN...
  12. Replies
    0
    Views
    1,089

    Child window controls & fonts

    When I create eg. push buttons, their captions are displayed using a SYSTEM_FIXED_FONT. The buttons look really ugly, like in Win 3.1. I want to change the font to DEFAULT_GUI_FONT (i.e. 8 point MS...
Results 1 to 12 of 12