CSS

A simple CSS multi-level drop-down menu implementation with no JavaScript

It is possible of course. It is always said. And this is the best kind of drop-down menu. Why? No reliance upon Javascript.

This is asked like a million times in so many different places. So I figured I would test myself and give my solution.

I am a huge fan of giving self-assessments. And you should be too. I did this without referencing anything and the only tools were Kate (my text editor), Firefox (obviously you need to see what you are working on), and Firebug. This should take any good CSS and HTML so-called 'expert' less than 20 minutes.

Convert CSS/HTML Hex Colour to SDL_Color type

It may be useful to use what web developers are pretty used to for colours. Parsing to rid of the # character for parsing not included.

This function takes a value like 0xffffff then returns an SDL_Color type. This is designed for use with SDL and OpenGL, so if you call SDL_GL_SwapBuffers() in your graphics loop function, then this function is likely for you. In SDL, OpenGL space is represented in BGR rather than RGB.

Syndicate content