int gldtGetShaderiv(int shader, int pname) { var paramPtr = calloc<Int32>(); int param; glGetShaderiv(shader, pname, paramPtr); param = paramPtr.value; calloc.free(paramPtr); return param; }