Skip to content

Instantly share code, notes, and snippets.

@iKlsR
Last active October 8, 2015 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iKlsR/3261283 to your computer and use it in GitHub Desktop.
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