Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: OpenGl + Delphi

  1. #1

    OpenGl + Delphi

    Hey guys, i'm looking for OpenGl headers for Delphi that support OpenGl 2.0 and.... that WORKS!
    I've tried built-in header provided by Delphi7, i've tried dglOpenGl headers from a deutsch site, i've looking at the web with google, but i failed!

    I simply wanna use OpenGl with GLSL support, is it too much?
    What headers do you use? Plz help!
    Italian Member: Sorry for my bad english.
    <br />Languages known: Delphi 7, C++.
    <br />Experiences with Asphyre, Irrlicht, OpenGL, NDS homebrew, and so on...

  2. #2

    OpenGl + Delphi

    i use the ones from DOT(over from Delphi3D)

    Works fine for me
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  3. #3

    OpenGl + Delphi

    You test it also with glsl shader?
    Italian Member: Sorry for my bad english.
    <br />Languages known: Delphi 7, C++.
    <br />Experiences with Asphyre, Irrlicht, OpenGL, NDS homebrew, and so on...

  4. #4

    OpenGl + Delphi

    yes indeed. I'm using it right now
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  5. #5

    OpenGl + Delphi

    Ok tnks, i've downloaded it now. I see that it's a bit older (2005), but if does it work i'll be glad.
    Italian Member: Sorry for my bad english.
    <br />Languages known: Delphi 7, C++.
    <br />Experiences with Asphyre, Irrlicht, OpenGL, NDS homebrew, and so on...

  6. #6
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    OpenGl + Delphi

    Hi GendoIkari, welcome to PGD!

    I'm kind of curious about this myself. I have been working on guides for beginning and new Pascal programmers just recently and one of the guides is going to be API headers/wrappers.

    All this time I have never gotten to looking up OpenGL headers.

    I know of a few off hand, but I'm not too sure it they are 2.0.

    There is the German language site[size=9px](with a few English pages for the rest of us )[/size] that has a pretty good set. [size=9px](which has English documentation for the package too!)[/size] DelphiGL.com

    It's sort of their name-sake so it would be funny if their headers were old and crappy. I think they would be 2.0 compliant.

    Sadly, I know of no other... So please feed this question with answers, because I want to learn too.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  7. #7

    OpenGl + Delphi

    try
    Ok, i've to say something.
    First: what i'm going to tell now its a "working in progress". And i mean NOW. In this moment i'm working with google and Delphi to make something working
    Second:
    dglOpenGl header maybe is uptodate. I've taken it there:
    http://www.pascalgamedevelopment.com...pic.php?t=2834

    The problems i've encountered are:
    1) they do not works with glfw.pas header (founded here http://prdownloads.sourceforge.net/g...-2.6.beta1.zip)

    when i try to use glsl, using the window made with glfw, dglOpenGl implementation crash misarably.
    2) some tutorial on web say something wrong about initialization of dglOpenGl.pas. Now i've made it working.

    finally:
    1) I suggest the use of Glfw if you do not use GLSL, because glfw do not use them. But glfw is very very very simple to understand and very very very well documented.
    To use in a Console Application
    2) If you wanna do things on your own, but uptodate things, i suggest dglOpenGl 2.0 headers.
    You have to set properly DC and RC, and you have to init the header, and that's all.
    After that you program like c++ opengl header.
    To use in a Form Application
    *** DO NOT get DC from MyForm.Canvas.Handle, BUT from GetDC(MyForm.Handle)***

    I hope it would be usefull
    end;
    Italian Member: Sorry for my bad english.
    <br />Languages known: Delphi 7, C++.
    <br />Experiences with Asphyre, Irrlicht, OpenGL, NDS homebrew, and so on...

  8. #8

    OpenGl + Delphi

    Hi

    The JEDI-SDL opengl headers (based on the ones from delphi3d.net) are fully opengl 2.0 compliant, and have been tested under both windows and linux (using delphi and freepascal).

    They are linked in with the JEDI-SDL framework, but JEDI-SDL is quite easy to pickup.

    If you go to CVS here is a BasicShader demo in the Demos\3D folder. This will show you how to get this working

    Hope it helps

    Dean
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  9. #9

    OpenGl + Delphi

    Thank you very much.
    I've downloaded it, but it's not so clear how to install the component, because in the readme there is an obscure reference to a "JEDISDLWin32Installer.exe" that it is not exist! O_O
    But i'll take a look at headers...
    Italian Member: Sorry for my bad english.
    <br />Languages known: Delphi 7, C++.
    <br />Experiences with Asphyre, Irrlicht, OpenGL, NDS homebrew, and so on...

  10. #10

    OpenGl + Delphi

    Quote Originally Posted by GendoIkari
    Thank you very much.
    I've downloaded it, but it's not so clear how to install the component, because in the readme there is an obscure reference to a "JEDISDLWin32Installer.exe" that it is not exist! O_O
    But i'll take a look at headers...
    They are not components, they are simply units and classes to be used in your project. The reference to JEDISDLWin32Installer.exe needs to be removed as this will be replaced with another installer soon.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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