Results 1 to 3 of 3

Thread: SDL as openglcontext in Lazarus

  1. #1

    SDL as openglcontext in Lazarus

    Hi,

    Is possible have SDL as frame context in lazarus form ? like lazarus/examples/openglcontrol/openglcontrol_demo.lpi or image: http:wiki.lazarus.freepascal.org/Image:kambi_vrml_browser.jpg

    It looks that SDL can only create own app window and thats all..i dont know where start.

  2. #2

    Re: SDL as openglcontext in Lazarus

    You can use SDL_putenv function to force SDL to use an existing window instead of creating its own. Look for the SDL_WINDOWID flag.

    JEDI-SDL package also comes with an example. It is located in the Demos/2D/SDLtests/testwin folder.

  3. #3

    Re: SDL as openglcontext in Lazarus

    thanks, about SDL_WINDOWID "hack" i read before

    i hope that SDL example help (in any case its too much for my poor programming skill..)

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
  •