Like Tree1Likes
  • 1 Post By KhronosGroup

I need advice for openGL

This is a discussion on I need advice for openGL within the C++ Programming forums, part of the General Programming Boards category; When I loaded texture in my polygons to my scene, it is ok. But , somehow when I add glColor3f(1, ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,668
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    (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!
    GReaper likes this.

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, 07: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, 07:42 PM
  5. OpenGL, texturing...and...more OpenGL
    By Sunny in forum Game Programming
    Replies: 2
    Last Post: 07-08-2002, 02:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21