Skip to content

Instantly share code, notes, and snippets.

@iKlsR
Last active October 8, 2015 02:08
Show Gist options
  • Select an option

  • Save iKlsR/3261283 to your computer and use it in GitHub Desktop.

Select an option

Save iKlsR/3261283 to your computer and use it in GitHub Desktop.
something something almost swizzly vectorish for the poor
#include <stdio.h>
typedef struct {
char t;
int x, y;
} swizzle;
swizzle image;
int main() {
image.t = 'i';
image.x = 12;
image.y = 40;
printf("%d - %d", image.x, image.y);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment