1 (* $Id: glTex.mli,v 1.8 2012-03-06 03:31:02 garrigue Exp $ *)
5 val coord
: s
:float -> ?t
:float -> ?r
:float -> ?q
:float -> unit -> unit
6 val coord2
: float * float -> unit
7 val coord3
: float * float * float -> unit
8 val coord4
: float * float * float * float -> unit
11 `mode
of [`modulate
|`decal
|`blend
|`replace
]
13 val env
: env_param
-> unit
15 type coord
= [`s
|`t
|`r
|`q
]
17 `mode
of [`object_linear
|`eye_linear
|`sphere_map
]
18 | `object_plane
of point4
19 | `eye_plane
of point4
21 val gen
: coord
:coord
-> gen_param
-> unit
24 [`color_index
|`red
|`green
|`blue
|`alpha
|`rgb
|`bgr
|`rgba
|`bgra
25 |`luminance
|`luminance_alpha
]
27 ?proxy
:bool -> ?level
:int -> ?internal
:int -> ?border
:bool ->
28 ([< format
], [< kind
]) GlPix.t
-> unit
30 ?proxy
:bool -> ?level
:int -> ?internal
:int -> ?border
:bool ->
31 ([< format
], [< kind
]) GlPix.t
-> unit
34 [`nearest
|`linear
|`nearest_mipmap_nearest
|`linear_mipmap_nearest
35 |`nearest_mipmap_linear
|`linear_mipmap_linear
]
36 type wrap
= [`clamp
|`repeat
]
39 | `mag_filter
of [`nearest
|`linear
]
42 | `border_color
of rgba
44 | `generate_mipmap
of bool
46 val parameter
: target
:[`texture_1d
|`texture_2d
] -> parameter
-> unit
49 val gen_texture
: unit -> texture_id
50 val gen_textures
: len
:int -> texture_id array
51 val bind_texture
: target
:[`texture_1d
|`texture_2d
] -> texture_id
-> unit
52 val delete_texture
: texture_id
-> unit
53 val delete_textures
: texture_id array
-> unit