The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

Talk:Hardware Accelerated Allegro (AllegroGL)

From Allegro Wiki
Jump to: navigation, search

(About merging with [AllegroGL] article) I find this article to be parallel with [2D_using_OpenGL] in sense that they both show two different ways of using AllegroGL. The title may be confusing though. --Milan Mimica 20:48, February 15, 2008 (UTC)

Recoloring without palettes?

From the article:

Do not use 8-bit color depth. OpenGL doesn't deal with palettes any more.

What's the accepted way for a program using AllegroGL to recolor a 15-, 16-, 24-, or 32-bit sprite, such as changing the color of a character's uniform? --Damian Yerrick 10:21, October 11, 2008 (MDT)

Depends on the game, there's many ways. If the color information for your uniform is a palette, then of course that's what you will have to use. There's many ways to do it, e.g. use the red components of your texture as palette indices in a pixel shader, or have one copy of the texture for each color and re-color in software. If the re-coloring doesn't have to be a palette, there's of course many other ways, like using some kind of overlay you can blend to different colors. --Elias 11:42, October 12, 2008 (MDT)