Initial Landscape orientation issue on iOS solved

I have searched for a solution how to implement a ViewController that supports only LandscaleLeft and LandscapeRight mode. Most solutions I found on stackoverflow and other forums using a setOrientationMode selector on the device object: NSNumber *value = [NSNumber numberWithInt: UIInterfaceOrientationLandscapeLeft]; [[UIDevice currentDevice] setValue:value forKey:@”orientation”]; this could probably work for you, but it uses a non official selector. You may think of this: it is impossible for the program to actually physically turn around your device, but that is what Continue reading Initial Landscape orientation issue on iOS solved

Adreno 320 GPU GLSL shader issues on Android

It seems that they didn’t spend much time in coding the graphic card drivers for Andreno 320 GPU. In my latest project I encountered a crash on linking some GLSL shader programs. It really took a while to figure out the cause. After a while could break down the shader code to something that looks like: struct _Diffuse_Type { lowp vec4 Color; sampler2D Texture; }; uniform _Diffuse_Type Diffuse; varying vec4 v_vtxColor; varying vec2 v_texcoord0; #ifdef VERTEX uniform mat4 u_modelViewProjection; attribute Continue reading Adreno 320 GPU GLSL shader issues on Android