This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define ENUMERATE_NULL_TERMINATED_VARARGS(firstArgument, type, argumentName, operation) \ | |
{ \ | |
va_list arguments; \ | |
va_start(arguments, firstArgument); \ | |
type argumentName = firstArgument; \ | |
while (argumentName) \ | |
{ \ | |
{ \ | |
operation \ | |
} \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern void bilContext_glClientState(dispatch_block_t contextBlock, GLenum clientState, ... ) | |
{ | |
va_list arguments; | |
GLenum value; | |
va_start(arguments, clientState); | |
for (value = clientState; value > 0; value = va_arg(arguments, GLenum)) | |
{ | |
glEnableClientState(value); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIView * view = [[UIView alloc] initWithFrame:CGRectMake( 0.0f, 0.0f, kAffirmationThumbnailWidth, kAffirmationThumbnailHeight )]; | |
view.backgroundColor = [UIColor grayColor]; | |
UIImageView * imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kAffirmationThumbnailWidth, kAffirmationThumbnailHeight)]; | |
imageView.backgroundColor = [UIColor clearColor]; | |
imageView.alpha = 1.0; | |
[view addSubview:imageView]; | |
// Background getting of small image and loading into memory | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void){ | |
NSString * imagePathSmall = [NSString stringWithFormat:@"%@_small.jpg",[[affirmation imagePath] stringByDeletingPathExtension]]; |
NewerOlder