Jul 28, 2011

C++ trick

const T& get() { const static T empty_value; return condition ? real_value : empty_value;}

it's helpful when T is std::container or so on.

Jun 27, 2011

RGDEngine + OpenGL

I'm start working on Linux/OpenGL (ES) support in RGDEngine (http://rgdengine.googlecode.com) Involves new shader material system and (I hope) iPhone and Android support.

May 24, 2011

Good gamedev blog

http://repi.blogspot.com/

May 23, 2011

DOM wrapper for lighting fast JSON parser

vjson-wrapper/
Sample use:
#include "json.h"

int main()
{

 json::document doc;
 const char* filename = "./test/pass1.json";

 bool res = doc.load(filename);

 json_type type = doc.type(); //JSON_ARRAY

 bool value0 = doc[5].as_bool(); //true
 const char* value1 = doc.array_first().str(); //"JSON Test Pattern pass1"

 const char* name1 = doc[1].child().name(); //"object with 1 member"

 int value3 = doc[8]("integer").as_int(); //1234567890


 for (json::value v = doc.child(); v; v = v.sibling())
 {

  switch(v.type())
  {
   //...
  }
 }
 return 0;
}

Mar 31, 2010

Nice gamedev rel. blog

http://doublebuffered.com

Blog Started

Current blog is for personal tech. posts related programming [graphics] (mobile\destop).
started :)