-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathGraphics.hsc
More file actions
68 lines (65 loc) · 3.86 KB
/
Graphics.hsc
File metadata and controls
68 lines (65 loc) · 3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{-# LANGUAGE CPP #-}
module ArrayFire.Internal.Graphics where
import ArrayFire.Internal.Defines
import ArrayFire.Internal.Types
import Foreign.Ptr
import Foreign.C.Types
#include "af/graphics.h"
foreign import ccall unsafe "af_create_window"
af_create_window :: Ptr AFWindow -> CInt -> CInt -> Ptr CChar -> IO AFErr
foreign import ccall unsafe "af_set_position"
af_set_position :: AFWindow -> CUInt -> CUInt -> IO AFErr
foreign import ccall unsafe "af_set_title"
af_set_title :: AFWindow -> Ptr CChar -> IO AFErr
foreign import ccall unsafe "af_set_size"
af_set_size :: AFWindow -> CUInt -> CUInt -> IO AFErr
foreign import ccall unsafe "af_draw_image"
af_draw_image :: AFWindow -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_plot"
af_draw_plot :: AFWindow -> AFArray -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_plot3"
af_draw_plot3 :: AFWindow -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_plot_nd"
af_draw_plot_nd :: AFWindow -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_plot_2d"
af_draw_plot_2d :: AFWindow -> AFArray -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_plot_3d"
af_draw_plot_3d :: AFWindow -> AFArray -> AFArray -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_scatter"
af_draw_scatter :: AFWindow -> AFArray -> AFArray -> AFMarkerType -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_scatter3"
af_draw_scatter3 :: AFWindow -> AFArray -> AFMarkerType -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_scatter_nd"
af_draw_scatter_nd :: AFWindow -> AFArray -> AFMarkerType -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_scatter_2d"
af_draw_scatter_2d :: AFWindow -> AFArray -> AFArray -> AFMarkerType -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_scatter_3d"
af_draw_scatter_3d :: AFWindow -> AFArray -> AFArray -> AFArray -> AFMarkerType -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_hist"
af_draw_hist :: AFWindow -> AFArray -> Double -> Double -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_surface"
af_draw_surface :: AFWindow -> AFArray -> AFArray -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_vector_field_nd"
af_draw_vector_field_nd :: AFWindow -> AFArray -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_vector_field_3d"
af_draw_vector_field_3d :: AFWindow -> AFArray -> AFArray -> AFArray -> AFArray -> AFArray -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_draw_vector_field_2d"
af_draw_vector_field_2d :: AFWindow -> AFArray -> AFArray -> AFArray -> AFArray -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_grid"
af_grid :: AFWindow -> CInt -> CInt -> IO AFErr
foreign import ccall unsafe "af_set_axes_limits_compute"
af_set_axes_limits_compute :: AFWindow -> AFArray -> AFArray -> AFArray -> CBool -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_set_axes_limits_2d"
af_set_axes_limits_2d :: AFWindow -> Float -> Float -> Float -> Float -> CBool -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_set_axes_limits_3d"
af_set_axes_limits_3d :: AFWindow -> Float -> Float -> Float -> Float -> Float -> Float -> CBool -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_set_axes_titles"
af_set_axes_titles :: AFWindow -> Ptr CChar -> Ptr CChar -> Ptr CChar -> Ptr AFCell -> IO AFErr
foreign import ccall unsafe "af_show"
af_show :: AFWindow -> IO AFErr
foreign import ccall unsafe "af_is_window_closed"
af_is_window_closed :: Ptr CBool -> AFWindow -> IO AFErr
foreign import ccall unsafe "af_set_visibility"
af_set_visibility :: AFWindow -> CBool -> IO AFErr
foreign import ccall unsafe "af_destroy_window"
af_destroy_window :: AFWindow -> IO AFErr