Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

DirectX and OpenGL

Doesanyone knowwhy the hell does MSDN 99 talk about all the nice stuff that DirectX 6.1 does and Visual Studio 6 brings version 5? It sucks ...

Anyway, does anyone know how i can get my hands on DirectX 8.0 SDK?
And other thing:
I create a window in VC 6.0, get its device context, create a OpenGL context for that window, make it the current rendering context, and when i start putting some pixels to it with glVertex, nothing happens. It doesnt even report any error. glError reports GL_NO_ERROR, GetLastError reports nothing, but i do everything right.
i use glBegin(GL_POINT), use glVertex2i, and then glEnd.
i even tried using glFlush after it. But nothing appears
. Can anyone help me? i cant draw anything!!!!

Comments

  • gautamgautam Posts: 642Member
    Are you calling glOrtho2D in your code. Have a resize function in your code which calls glOrtho2D. Look at tuts on http://nehe.gamedev.net


    : Doesanyone knowwhy the hell does MSDN 99 talk about all the nice stuff that DirectX 6.1 does and Visual Studio 6 brings version 5? It sucks ...
    :
    : Anyway, does anyone know how i can get my hands on DirectX 8.0 SDK?
    : And other thing:
    : I create a window in VC 6.0, get its device context, create a OpenGL context for that window, make it the current rendering context, and when i start putting some pixels to it with glVertex, nothing happens. It doesnt even report any error. glError reports GL_NO_ERROR, GetLastError reports nothing, but i do everything right.
    : i use glBegin(GL_POINT), use glVertex2i, and then glEnd.
    : i even tried using glFlush after it. But nothing appears
    : . Can anyone help me? i cant draw anything!!!!
    :


  • knr02knr02 Posts: 16Member
    : Are you calling glOrtho2D in your code. Have a resize function in your code which calls glOrtho2D. Look at tuts on http://nehe.gamedev.net
    :
    :
    : : Doesanyone knowwhy the hell does MSDN 99 talk about all the nice stuff that DirectX 6.1 does and Visual Studio 6 brings version 5? It sucks ...
    : :
    : : Anyway, does anyone know how i can get my hands on DirectX 8.0 SDK?
    : : And other thing:
    : : I create a window in VC 6.0, get its device context, create a OpenGL context for that window, make it the current rendering context, and when i start putting some pixels to it with glVertex, nothing happens. It doesnt even report any error. glError reports GL_NO_ERROR, GetLastError reports nothing, but i do everything right.
    : : i use glBegin(GL_POINT), use glVertex2i, and then glEnd.
    : : i even tried using glFlush after it. But nothing appears
    : : . Can anyone help me? i cant draw anything!!!!
    : :
    :
    :

    Did you define the color you want before glBegin(...) ?
    use
    glColor3f(1.0f, 1.0f, 1.0f);
    to make them white.




  • Sand_Hawk9Sand_Hawk9 Posts: 233Member
    Yuo can find the DirectX SDK at http://msdn.microsoft.com. Search for DirectX 8.0 SDK and you will find it. But I advise personally DX 7.0a because in the 8 version DirectDraw and Direct3D are integrated into eachother. The DX7.0 SDK is a bit harder to find. Try searching at a search engine for DirectX 7.0 SDK. You will find mostly links to amateurs who have laided a link to the DirectX 7.0 SDK.

    Sand Hawk

  • vdub12vdub12 Posts: 19Member
    DirectX 8 supports newer technologies though

    I am really new but I think you can get better results in DX8

    Here is a link to the download for DirectX 8 SDK this way you can skip having to search thru there site for it

    http://download.microsoft.com/download/win2000pro/dx8asdk/8.0a/W9X2KMe/EN-US/DX8a_SDK.exe



    : Yuo can find the DirectX SDK at http://msdn.microsoft.com. Search for DirectX 8.0 SDK and you will find it. But I advise personally DX 7.0a because in the 8 version DirectDraw and Direct3D are integrated into eachother. The DX7.0 SDK is a bit harder to find. Try searching at a search engine for DirectX 7.0 SDK. You will find mostly links to amateurs who have laided a link to the DirectX 7.0 SDK.
    :
    : Sand Hawk
    :


  • vdub12vdub12 Posts: 19Member
    and here is the link for DX7 SDK

    http://download.microsoft.com/download/win98SE/Update/7.0/W9X/EN-US/DX70eng.exe

    and Here is DX7a SDK

    http://download.microsoft.com/download/win98SE/DXSDK/7.0a/W9X/EN-US/dx7adxf.exe

    : Yuo can find the DirectX SDK at http://msdn.microsoft.com. Search for DirectX 8.0 SDK and you will find it. But I advise personally DX 7.0a because in the 8 version DirectDraw and Direct3D are integrated into eachother. The DX7.0 SDK is a bit harder to find. Try searching at a search engine for DirectX 7.0 SDK. You will find mostly links to amateurs who have laided a link to the DirectX 7.0 SDK.
    :
    : Sand Hawk
    :


Sign In or Register to comment.