Results 1 to 2 of 2

Thread: Copying OpenGL workspace to Texture data in FreePascal.

  1. #1

    Copying OpenGL workspace to Texture data in FreePascal.

    Hello. I was wondering how this could be done.

    The command lines would be something like:

    glGetImageData(100,100,200,200,TextureData);

    And then when you start to draw quads, you bind texture to TextureData, then it displays the captured data when you start drawing to quad.

    I wonder how this can be done.

    Especially when there is a way to save the captured data to a seperate file like a BMP.

    p.s. I would prefer to use the original FPC compiler, and even the IDE.

  2. #2

    Re: Copying OpenGL workspace to Texture data in FreePascal.

    Look for code which renders a scene to a texture. I'm sure you'll find plenty - even for the latest OpenGL's version.

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
  •