opengl/directX8

This is a discussion on opengl/directX8 within the C++ Programming forums, part of the General Programming Boards category; Correct me if I'm wrong, but isn't openGL and directX8 a set of libraries predefined with classes for use with ...

  1. #1
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589

    Arrow opengl/directX8

    Correct me if I'm wrong, but isn't openGL and directX8 a set of libraries predefined with classes for use with game developement (e.g. sound or video)?
    Does anybody know how I can see the code that makes up the libraries/classes? I feel this will give me a better understanding of what is happening.
    Is the internal logic of openGL and directX8 written in a certain language?
    Last edited by xviddivxoggmp3; 12-30-2003 at 03:16 PM.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  2. #2
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    I think SGI provides a sample implementaion for OpenGL, check out the site:
    http://www.sgi.com/software/opengl/
    also there is Mesa:
    http://www.mesa3d.org/

  3. #3
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    I have been searching the sites you provided, but I was unable to find any bair bones code of the internal logic in OpenGL. Do you have a morespecific link to the library source that I can review.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    DirectX provides COM objects, OpenGL functions. Both are for fast hardware access, OpenGL only for graphics, DirectX for input and audio devices and networking too.
    OpenGL is an open standard, anybody can implement it. DirectX in theory too: the standard is not open, but the way DirectX works it could be implemented by anyone (and some deeply hidden parts are probably implemented by the graphics card vendors).
    Thus there isn't any requirement on the language used to implement them either, any particular implementation might be written in Pascal for all you know. The only requirements are set by the interface.

    Nevertheless, both DirectX and nearly all OpenGL implementations are probably written largely in C/C++ with a good deal of assembly mixed in.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    Originally posted by xviddivxoggmp3
    I have been searching the sites you provided, but I was unable to find any bair bones code of the internal logic in OpenGL. Do you have a morespecific link to the library source that I can review.
    download Mesa, it's an OpenGL implementation, the download link is on the main page, to the left.

  6. #6
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    OpenGL implementation
    ?????????
    Implimentation do you mean a developement environment?
    I like to write all my code from .NET compiler.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    OpenGL is just a standard interface, anyone can implement this interface. The application that uses OpenGL will not know and doesn't need to know what implementation it is using.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    Originally posted by xviddivxoggmp3
    ?????????
    Implimentation do you mean a developement environment?
    I like to write all my code from .NET compiler.
    no, what I mean by implementation is that they actually programmed OpenGL functions (glVertex*, glTranslate*...) so you can use them in your programs, this is exactly what you are looking for.

  9. #9
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    thanks for the information.
    I found some good links from the pages.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21