Got rid of uiDrawImage stuff. I need to decide if the drawing API should care about scaling or not.
This commit is contained in:
parent
2da1273ec2
commit
7995a4460c
|
@ -26,7 +26,6 @@ This README is being written.<br>
|
|||
|
||||
* **<codedate**
|
||||
* Added `uiTable` TODO
|
||||
* Added `uiDrawSingleResImage` and `uiDrawMultiResImage` TODO
|
||||
|
||||
* **17 June 2016**
|
||||
* `uiMainSteps()` no longer takes any arguments and no longer needs to invoke a function to do the work. You still need to call it, but once you do, it will return immediately and you can then get right to your main loop.
|
||||
|
|
3
ui.h
3
ui.h
|
@ -316,9 +316,6 @@ struct uiAreaDrawParams {
|
|||
double ClipHeight;
|
||||
};
|
||||
|
||||
// TODO merge
|
||||
#include "uidrawimage.h"
|
||||
|
||||
typedef struct uiDrawPath uiDrawPath;
|
||||
typedef struct uiDrawBrush uiDrawBrush;
|
||||
typedef struct uiDrawStrokeParams uiDrawStrokeParams;
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
// 25 june 2016
|
||||
|
||||
typedef struct uiDrawSingleResImage uiDrawSingleResImage;
|
||||
typedef struct uiDrawMultiResImage uiDrawMultiResImage;
|
||||
|
||||
_UI_EXTERN uiDrawSingleResImage *uiDrawNewSingleResImage(void *data, int width, int height, int stride);
|
||||
_UI_EXTERN void uiDrawFreeImage(uiDrawSingleResImage *i);
|
||||
_UI_EXTERN void uiDrawSingleResImageNativeSize(uiDrawSingleResImage *i, uiDrawContext *c, double *width, double *height);
|
||||
|
||||
_UI_EXTERN uiDrawMultiResImage *uiDrawNewMultiResImage(double width, double height);
|
||||
_UI_EXTERN void uiDrawFreeMultiResImage(uiDrawMultiResImage *i);
|
||||
_UI_EXTERN void uiDrawMultiResImageAppend(void *data, int pixelWidth, int pixelHeight, int pixelStride);
|
||||
|
||||
_UI_EXTERN void uiDrawSingleRes(uiDrawContext *c, double x, double y, double width, double height uiDrawSingleResImage *image, int interpolate);
|
||||
_UI_EXTERN void uiDrawMultiRes(uiDrawContext *c, double x, double y, double width, double height, uiDrawMultiResImage *image, int interpolate);
|
Loading…
Reference in New Issue