Thread: Transparent screen issue.

  1. #1
    Registered User
    Join Date
    Nov 2015
    Posts
    3

    Transparent screen issue.

    Hello, I'm new here.. I am having an issue when setting up SDL/OpenGL. I create a window using the following:

    SDL_Init(SDL_INIT_EVERYTHING);

    _Window = SDL_CreateWindow("Game Engine", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, _screenWidth, _screenHeight, SDL_WINDOW_OPENGL);

    The window opens fine, but it's transparent rather than what the default (I believe is white) is.

    I included everything properly and am unsure as to why the screen is transparent.

    Does anyone have any ideas?

  2. #2
    Guest
    Guest
    Are you sure you don't need to manually clear the window buffer, like so?

  3. #3
    Registered User
    Join Date
    Nov 2015
    Posts
    3
    What I have provided in my original post should display the window (by default) as white, but it is transparent.
    I even tried glClearColor(1.0, 1.0, 1.0, 1.0) to make the alpha layer non-existant, but still no help.

  4. #4
    Registered User
    Join Date
    Nov 2015
    Posts
    3
    Actually, that was the issue! Thank you!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Transparent bitmaps ?
    By kira_coder in forum Windows Programming
    Replies: 3
    Last Post: 11-11-2010, 04:00 PM
  2. Transparent hi-res LCD screen
    By sean in forum Tech Board
    Replies: 6
    Last Post: 05-29-2009, 04:38 AM
  3. Transparent bitmaps
    By Mithoric in forum Windows Programming
    Replies: 5
    Last Post: 03-11-2004, 03:14 PM
  4. Displaying a transparent gif
    By Just in forum Windows Programming
    Replies: 2
    Last Post: 05-09-2003, 09:53 PM
  5. Transparent Blitting
    By PsychoBrat in forum Windows Programming
    Replies: 2
    Last Post: 01-15-2003, 12:35 AM

Tags for this Thread