File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change 36
36
tex_coord: TSDL_FPoint;
37
37
end ;
38
38
39
+ { **
40
+ * The scaling mode for a texture.
41
+ *}
39
42
PSDL_ScaleMode = ^TSDL_ScaleMode;
40
- TSDL_ScaleMode = (
41
- SDL_ScaleModeNearest,
42
- SDL_ScaleModeLinear,
43
- SDL_ScaleModeBest
44
- );
43
+ TSDL_ScaleMode = type cint;
44
+
45
+ const
46
+ SDL_ScaleModeNearest = TSDL_ScaleMode(0 ); { **< nearest pixel sampling *}
47
+ SDL_ScaleModeLinear = TSDL_ScaleMode(1 ); { **< linear filtering *}
48
+ SDL_ScaleModeBest = TSDL_ScaleMode(2 ); { **< anisotropic filtering *}
45
49
46
50
{ **
47
51
* The access pattern allowed for a texture.
48
52
*}
49
53
type
50
54
PSDL_TextureAccess = ^TSDL_TextureAccess;
51
- TSDL_TextureAccess = cint32 ;
55
+ TSDL_TextureAccess = type cint ;
52
56
53
57
const
54
58
SDL_TEXTUREACCESS_STATIC = 0 ; { **< Changes rarely, not lockable *}
60
64
* The texture channel modulation used in SDL_RenderCopy().
61
65
*}
62
66
PSDL_TextureModulate = ^TSDL_TextureModulate;
63
- TSDL_TextureModulate = (
64
- SDL_TEXTUREMODULATE_NONE, { **< No modulation *}
65
- SDL_TEXTUREMODULATE_COLOR, { **< srcC = srcC * color *}
66
- SDL_TEXTUREMODULATE_ALPHA { **< srcA = srcA * alpha *}
67
- );
67
+ TSDL_TextureModulate = type cint;
68
+
69
+ const
70
+ SDL_TEXTUREMODULATE_NONE = TSDL_TextureModulate(0 ); { **< No modulation *}
71
+ SDL_TEXTUREMODULATE_COLOR = TSDL_TextureModulate(1 ); { **< srcC = srcC * color *}
72
+ SDL_TEXTUREMODULATE_ALPHA = TSDL_TextureModulate(2 ); { **< srcA = srcA * alpha *}
68
73
69
74
{ **
70
75
* Flip constants for SDL_RenderCopyEx
You can’t perform that action at this time.
0 commit comments