CALayer: Implicit animation of a custom property
For Apple’s iOS, below is the code to implicitly animate a custom property, using float as an example, in a subclass of CALayer: /* MyLayer.m */ @interface MyLayer() { BOOL _isPresenting; /* TRUE for presentation layer */ } @property (nonatomic) float property; /* normally defined in MyLayer.h */ @end @implementation MyLayer @synthesize property = _property; […]
Apple’s GLKit framework for IOS 5
Apple’s GLKit framework for IOS 5 is a few objective-c classes that make it easier to program for OpenGL ES 2.0, especially when porting from OpenGL ES 1.1 applications to 2.0. OpenGL ES 2.0 of course is the new graphics API for creating pretty 3D scenes in mobile apps. What makes it particularly hard for […]
Sin of a Solar Empire Mod – TEC Supremacy
TEC Supremacy (Link, 15MB) is my first mod of Sin of a Solar Empire (PC game) – Entrenchment 1.051. Below are the changes: 1. New Ships: TEC Sova Strike Carrier – an experimental carrier with more fire power, but costs more (G3200, M450, C250). It carries advance strike crafts: interceptors and torpedo bombers. These strike […]
Virtualdub’s plugin: mirror
I was trying to mirror (flip and tile) a video file but could not find the appropriate plugin in virtualdub. Luckily, virtualdub has a plugin sdk that I can simply modify to my needs. Here is the source files for the plugin. It is a bit unusual that someone would actually want to mirror a […]