Results 1 to 2 of 2

Thread: recreating windows and textures

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001

    recreating windows and textures

    To do fullscreen, resolution, and color bitdepth switching (while in the app) I am just destroying the GL window and recreating it. I have to reload all texture data, right? Should I call glDeleteTextures before I destroy the window? Can I blindly reuse the texure[] array with the call to glGenTexures again or should I zero it out?
    Are there any other pitfalls when it comes to destroying and recreating the Opengl window. This is in win2000, VC6.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Shreveport, LA, USA

    Re: recreating windows and textures

    Here's what I do:

    Unload all textures
    Switch off RC
    Destroy RC
    Destroy window
    Change mode
    Create window
    Set pixel format
    Create RC
    Make RC current
    Initialize GL state
    Load textures

Similar Threads

  1. Render bugs after recreating FBOs
    By Ident in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 09-20-2011, 01:52 PM
  2. Multiple OpenGL windows and textures
    By Majestik in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 09-24-2005, 07:10 PM
  3. ALT-TAB and textures. (Windows)
    By dxantos in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-16-2001, 11:12 PM
  4. 3D Textures & Windows 2000
    By imported_philippe in forum OpenGL: Advanced Coding
    Replies: 15
    Last Post: 03-16-2001, 12:09 AM
  5. Sharing Textures between multiple windows
    By BK in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-18-2000, 05:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean