Linear scaling using integer math (copied from ts-ddraw)

This commit is contained in:
FunkyFr3sh 2018-11-17 05:54:22 +01:00
parent ee6266519a
commit e4437a278f
4 changed files with 160 additions and 1 deletions

18
inc/scale_pattern.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef _SCALE_PATTERN_H
#define _SCALE_PATTERN_H
typedef enum {
REPEAT,
SEQUENCE,
ONCE,
END
} SCALE_PATTERN_TYPE;
typedef struct {
SCALE_PATTERN_TYPE type;
int dst_index;
int src_index;
int count;
} scale_pattern;
#endif