Thread: I need advice for openGL

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    135

    I need advice for openGL

    When I loaded texture in my polygons to my scene, it is ok. But , somehow when I add glColor3f(1, 1, 0) which is green to my text in openGL. My whole scene become green. How to fix it like I only want the text or word in openGL to be green , not the whole scene.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Post some code.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    (1, 1, 0) is yellow, (0, 1, 0) is green
    Devoted my life to programming...

  4. #4
    Registered User
    Join Date
    Apr 2011
    Posts
    135
    Never mind, solved.

  5. #5
    Registered User KhronosGroup's Avatar
    Join Date
    May 2012
    Location
    Oregon
    Posts
    1
    Quote Originally Posted by evildotaing View Post
    Never mind, solved.
    Hi evildotaing, could you please share your solution with us? Thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL 2D Bounding Shapes advice please
    By MyNameIsNathan in forum Game Programming
    Replies: 0
    Last Post: 12-23-2011, 08:23 AM
  2. Replies: 3
    Last Post: 09-02-2010, 01:26 PM
  3. OpenGL Quesiton: Does Windows XP, Vista still at OpenGL 1.1?
    By indigo0086 in forum Game Programming
    Replies: 8
    Last Post: 05-21-2007, 11:18 AM
  4. Replies: 5
    Last Post: 02-12-2006, 08:42 PM
  5. OpenGL, texturing...and...more OpenGL
    By Sunny in forum Game Programming
    Replies: 2
    Last Post: 07-08-2002, 02:34 PM