Add more Image pixel operation CFFI functions

This commit is contained in:
Joshua Granick
2015-04-13 17:35:30 -07:00
parent a16894571e
commit 338518a5f4
11 changed files with 484 additions and 24 deletions

View File

@@ -0,0 +1,40 @@
#ifndef LIME_MATH_COLOR_MATRIX_H
#define LIME_MATH_COLOR_MATRIX_H
#include <hx/CFFI.h>
#include <system/System.h>
namespace lime {
class ColorMatrix {
public:
ColorMatrix ();
ColorMatrix (value colorMatrix);
~ColorMatrix ();
float GetAlphaMultiplier ();
float GetAlphaOffset ();
float GetBlueMultiplier ();
float GetBlueOffset ();
int GetColor ();
float GetGreenMultiplier ();
float GetGreenOffset ();
float GetRedMultiplier ();
float GetRedOffset ();
float data[20];
};
}
#endif

View File

@@ -0,0 +1,31 @@
#ifndef LIME_MATH_RECTANGLE_H
#define LIME_MATH_RECTANGLE_H
#include <hx/CFFI.h>
namespace lime {
class Rectangle {
public:
Rectangle ();
Rectangle (value _rect);
double height;
double width;
double x;
double y;
};
}
#endif