Implemented basic DOF and film grain/noise. Also using TUI more to make sure it works as intended. Started a separate project using GLFW and TUI and no other dependencies in preparation for open sourcing it.

DOF and Noise

Time flies by and I’m still working on the gui. I have finally given it a name: “tweaking user interface” neatly shortened to “tui”. This name clearly states the purpose. It is not a general purpose widget library replacement but rather a programmer convenience gui when building prototypes. My focus have been on making the usage easy and immediate while keeping the backend flexible. The reason for this is that I want to keep some doors open (for GLES and DX apps).

The usage pattern looks like this:

// Init with internal allocation. alternatively give the lib all mem you want to provide using tuiInit(....)
tuiEasyInit()

// init the renderer for gl
// TextAtlas is basically a mapping from char to rect in a texture
// I will not explain the textAtlas more at this time. I just want to convey the usage patterns
tuiRenderGLInit(w, h, shaderId, textAtlas, fontTextureId);

// Render / use
tuiBegin();
tuiBeginPanel(x,y, PANEL_W, PANEL_H);
tuiLabel("Tweaking parameters");
tuiSlider("EXPOSURE", &exposure, SLIDER_W, maxValue);
tuiEndPanel();
tuiEnd();

tuiRenderGL(maxNumCommands);

And that’s it. I have omitted some details since I don’t feel that this gui is fit for public consumption just yet.

© 2011 CFW Design Suffusion theme by Sayontan Sinha