Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Color instructions get ingnored when the generator file is in subfolder

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2017
    Posts
    3

    Angry Color instructions get ingnored when the generator file is in subfolder

    I have put the c and h files (except the one with the main) and shaders in subfolders (I also have an extra folder for the compiled files) and it compiles and runs and the shade is displayed - but except the background everything is white. What can I do here?
    By the way is there some color library i can download so the colors have names I can individually understand and aren't just some floats in an array.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    4,173
    Quote Originally Posted by LSCHM26 View Post
    I have put the c and h files (except the one with the main) and shaders in subfolders (I also have an extra folder for the compiled files) and it compiles and runs and the shade is displayed - but except the background everything is white. What can I do here?
    Try reducing your program to the bare minimum (e.g. allocating your window and glClear()'ing the window to some constant color). Built up from there. When "strange things happen", you'll know what caused it.

    It can help to check your intermediate versions into a version control system so you can trivially go back and see where things went wrong.


    By the way is there some color library i can download so the colors have names I can individually understand and aren't just some floats in an array.
    One helpful source is X11's rgb.txt file:

    * http://hans.fugal.net/vim/rgbtxt.html

    Of course, you can use any image editor (Gimp, Photoshop, MSPaint, etc.), and it'll let you dial in a color and see what it is.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •