Results 1 to 10 of 24

Thread: FBOs and OpenGL Extensions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by Lifepower View Post
    By the way, if you are using DGL headers, where do you call InitOpenGL(), ReadExtensions() and ReadImplementationProperties()?
    - (Optional, create window here. You can use ready TForm, or with Lazarus you should use TOpenGLContext.)
    - InitOpenGL()
    - Create window (if wasn't already)
    - Initialize rendering context (don't need to do much with TOpenGLContext, at least MakeCurrent())
    - ReadExtensions()
    - ReadImplementationProperties()
    - Now you can initialize the projection matrix, load textures etc.

  2. #2
    Quote Originally Posted by User137 View Post
    - (Optional, create window here. You can use ready TForm, or with Lazarus you should use TOpenGLContext.)
    - InitOpenGL()
    - Create window (if wasn't already)
    - Initialize rendering context (don't need to do much with TOpenGLContext, at least MakeCurrent())
    - ReadExtensions()
    - ReadImplementationProperties()
    - Now you can initialize the projection matrix, load textures etc.
    My question was addressed to code_glitch (so I don't understand why are you quoting me?) as the issue may be in context creation and/or when reading extensions, but the order of the calls that you described should work.

  3. #3
    Misread topic flow when skimmed quickly. Your message body seems actually guiding, not asking how it's done sort...

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
  •