Linear scaling using integer math (copied from ts-ddraw)
This commit is contained in:
parent
ee6266519a
commit
e4437a278f
4 changed files with 160 additions and 1 deletions
18
inc/scale_pattern.h
Normal file
18
inc/scale_pattern.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue