Quake3World.com Forums
     Programming Discussion
        CG_FadeColor() and trap_R_SetColor()


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: CG_FadeColor() and trap_R_SetColor()

Insane Quaker
Insane Quaker
Joined: 05 Mar 2010
Posts: 384
PostPosted: 07-11-2013 11:56 AM           Profile Send private message  E-mail  Edit post Reply with quote


Howdy,

Is there a certain method to fading the opacity of text and images? I've meddled around with fading once or twice before without problems, but now when I apply it to the item pickup display (CG_DrawItemPickup() ) it ends up fading out a bunch of text in other HUD elements too to about 10% opacity (CG_DrawTimer(), CG_DrawSpeedometer() and CG_DrawFPS() ). Some others remain unaffected.

I'm not sure how to accurately illustrate what's going on in my code so I decided to attach cg_draw.c below, if anyone can figure out where I'm going wrong here? Note: CG_FadeColor is unaltered and the font handling has been moved to its own file.




Attachments:
cg_draw.zip [20.29 KB]
Downloaded 347 times
Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.