Search found 2 matches

by dotphracker
Sat Jan 22, 2011 12:52 pm
Forum: Programming Discussion
Topic: Set OpenGL color key??
Replies: 15
Views: 4127

Re: Set OpenGL color key??

I keep all my includes in the header. SDL is included for the SDL_SetColorKey, SDL_LoadBMP, etc in the cpp. As for GLUT.... well it isn't needed. I was perhaps `lazy`.. the headers can be just #include <OpenGL/gl.h> #include <OpenGL/glu.h> #include <SDL/SDL.h> #include <iostream>
by dotphracker
Sat Jan 22, 2011 2:49 am
Forum: Programming Discussion
Topic: Set OpenGL color key??
Replies: 15
Views: 4127

Re: Set OpenGL color key??

I know this is more than 3+ months old.. but I have some code that can benefit anyone who comes by. Converting BMP (RGB/BGR) into (RGBA/BGRA) using SDL_SetColorKey and the standard OpenGL stuff. (TIP: if you use photoshop or anything else.. make sure to turn off the tools' anti-aliasing!!! fill/magi...