Add more Image pixel operation CFFI functions
This commit is contained in:
40
project/include/math/ColorMatrix.h
Normal file
40
project/include/math/ColorMatrix.h
Normal 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
|
||||
31
project/include/math/Rectangle.h
Normal file
31
project/include/math/Rectangle.h
Normal 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
|
||||
Reference in New Issue
Block a user