asmodehn / sdlut

SDL utility toolkit - A C++ wrapper arount SDL 1.2
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

OpenGL, Pixelformat an Colors #12

Open asmodehn opened 10 years ago

asmodehn commented 10 years ago

We need to be careful with Colors and PixelColors, when use with OpenGL or not. since some methods, like put and get pixel can be used with opengl or not, and in both video and rgb surface, we need a method to determine pixel color, based on format, that is the same for all the classes... We might have to use a fake pixel format for OpenGL for example... More test to be done though to understand how it works...