Skip to content

Instantly share code, notes, and snippets.

@FlyingJester
Created April 16, 2014 21:53
Show Gist options
  • Select an option

  • Save FlyingJester/10936920 to your computer and use it in GitHub Desktop.

Select an option

Save FlyingJester/10936920 to your computer and use it in GitHub Desktop.
The other part.
#ifndef SAPPHIRE_PRIMITIVE_TYPES_HEAD
#define SAPPHIRE_PRIMITIVE_TYPES_HEAD
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
struct BezierCurve_arg{
bool cubic;
uint32_t color;
unsigned int step;
int x[4];
int y[4];
};
struct Complex_arg{
int x;
int y;
unsigned int w;
unsigned int h;
unsigned int radius;
uint32_t color[2];
};
struct Line_arg{
int x[2];
int y[2];
uint32_t color[2];
};
struct Ellipse_arg{
int x;
int y;
unsigned int hradius;
unsigned int vradius;
float angle;
uint32_t color[2];
};
struct Rectangle_arg{
int x;
int y;
unsigned int width;
unsigned int height;
uint32_t color[4];
};
struct Triangle_arg{
int x[3];
int y[3];
uint32_t color[3];
};
struct Point_arg{
int x;
int y;
uint32_t color;
};
#ifdef __cplusplus
}
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment