Sha256: 12631daa04142599324c7a2b10be4ac5d9683b35cab72f71a08840ab5de2f4bc
Contents?: true
Size: 716 Bytes
Versions: 3
Compression:
Stored size: 716 Bytes
Contents
#import <Cocoa/Cocoa.h> #import <Gosu/Math.hpp> #import <Gosu/Text.hpp> #import <Gosu/Timing.hpp> #import <Gosu/Utility.hpp> @interface ObjGosu : NSObject { } @end @implementation ObjGosu + (float)offsetXWithAngle:(float)angle distance:(float)dist { return Gosu::offsetX(angle, dist); } + (float)offsetYWithAngle:(float)angle distance:(float)dist { return Gosu::offsetY(angle, dist); } + (float)distanceFromX:(float)x1 y:(float)y1 toX:(float)x2 y:(float)y2 { return Gosu::distance(x1, y1, x2, y2); } + (unsigned)milliseconds { return Gosu::milliseconds(); } + (NSString*)defaultFontName { return [NSString stringWithUTF8String: Gosu::wstringToUTF8(Gosu::defaultFontName()).c_str()]; } @end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gosu-0.7.18 | GosuImpl/ObjGosu/ObjGosu.mm |
gosu-0.7.17 | GosuImpl/ObjGosu/ObjGosu.mm |
gosu-0.7.16 | GosuImpl/ObjGosu/ObjGosu.mm |