CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2013
    Posts
    1

    Question I need some help with(I think) OpenGL...

    Below is a copy of my yahoo answers post. You can watch the video to see most of the code.
    Btw, I'm happy to be here, and I hope you can help me with this problem I'm having
    Thanks in advance, tarik00555.

    System:

    Windows 7 64bit
    2 GB ram
    GeForce 8400 gs
    AMD Athlon 64 X2 Dual Core 6000+ 3.10 GHz
    (maybe it's needed idk)

    Well, I was bored and put random stuff in youtube, and eventually I put "make a game C++".
    So this great tutorial series comes up and I decide to follow it as I have some experience in C++.
    The first thing that anoyed me is that at one point I put in that if you click R the window will go red.
    It didn't work, as soon as I closed the program one brief second it would go red and shut down.
    I deleted that part of the code as it wasn't important anyway. But this annoys me. I show and highlight a part of code wich should draw a diagonal from 0, 0 to 800, 600. And you can see in the video that the screen is white. And the screen shouldn't be all white in the first place(I think it should be some greyish).

    So thank you if you read all of this.

    Here's the link to the video:
    http://www.youtube.com/watch?v=wL3vG...ature=youtu.be

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: I need some help with(I think) OpenGL...

    Without looking at anything...
    I haven't done much in OpenGL but if I remember correctly nVidia have/had an issue where everything had to be a power of two. I.e. drawing something 32 * 32 or 32 * 64 and so on works but nothing else. It might be totally unrelated or outdated but I would at least try it.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured